2222
2323package com .adobe .aco ;
2424
25- import java .util .List ;
2625import java .util .Map ;
26+ import java .util .List ;
27+
2728
28- /** ApiException class. */
29+ /**
30+ * <p>ApiException class.</p>
31+ */
2932@ SuppressWarnings ("serial" )
30- @ javax .annotation .Generated (
31- value = "org.openapitools.codegen.languages.JavaClientCodegen" ,
32- comments = "Generator version: 7.4.0" )
33+ @ javax .annotation .Generated (value = "org.openapitools.codegen.languages.JavaClientCodegen" , comments = "Generator version: 7.4.0" )
3334public class ApiException extends Exception {
3435 private static final long serialVersionUID = 1L ;
3536
3637 private int code = 0 ;
3738 private Map <String , List <String >> responseHeaders = null ;
3839 private String responseBody = null ;
3940
40- /** Constructor for ApiException. */
41+ /**
42+ * <p>Constructor for ApiException.</p>
43+ */
4144 public ApiException () {}
4245
4346 /**
44- * Constructor for ApiException.
47+ * <p> Constructor for ApiException.</p>
4548 *
4649 * @param throwable a {@link java.lang.Throwable} object
4750 */
@@ -50,7 +53,7 @@ public ApiException(Throwable throwable) {
5053 }
5154
5255 /**
53- * Constructor for ApiException.
56+ * <p> Constructor for ApiException.</p>
5457 *
5558 * @param message the error message
5659 */
@@ -59,76 +62,58 @@ public ApiException(String message) {
5962 }
6063
6164 /**
62- * Constructor for ApiException.
65+ * <p> Constructor for ApiException.</p>
6366 *
6467 * @param message the error message
6568 * @param throwable a {@link java.lang.Throwable} object
6669 * @param code HTTP status code
6770 * @param responseHeaders a {@link java.util.Map} of HTTP response headers
6871 * @param responseBody the response body
6972 */
70- public ApiException (
71- String message ,
72- Throwable throwable ,
73- int code ,
74- Map <String , List <String >> responseHeaders ,
75- String responseBody ) {
73+ public ApiException (String message , Throwable throwable , int code , Map <String , List <String >> responseHeaders , String responseBody ) {
7674 super (message , throwable );
7775 this .code = code ;
7876 this .responseHeaders = responseHeaders ;
7977 this .responseBody = responseBody ;
8078 }
8179
8280 /**
83- * Constructor for ApiException.
81+ * <p> Constructor for ApiException.</p>
8482 *
8583 * @param message the error message
8684 * @param code HTTP status code
8785 * @param responseHeaders a {@link java.util.Map} of HTTP response headers
8886 * @param responseBody the response body
8987 */
90- public ApiException (
91- String message ,
92- int code ,
93- Map <String , List <String >> responseHeaders ,
94- String responseBody ) {
88+ public ApiException (String message , int code , Map <String , List <String >> responseHeaders , String responseBody ) {
9589 this (message , (Throwable ) null , code , responseHeaders , responseBody );
9690 }
9791
9892 /**
99- * Constructor for ApiException.
93+ * <p> Constructor for ApiException.</p>
10094 *
10195 * @param message the error message
10296 * @param throwable a {@link java.lang.Throwable} object
10397 * @param code HTTP status code
10498 * @param responseHeaders a {@link java.util.Map} of HTTP response headers
10599 */
106- public ApiException (
107- String message ,
108- Throwable throwable ,
109- int code ,
110- Map <String , List <String >> responseHeaders ) {
100+ public ApiException (String message , Throwable throwable , int code , Map <String , List <String >> responseHeaders ) {
111101 this (message , throwable , code , responseHeaders , null );
112102 }
113103
114104 /**
115- * Constructor for ApiException.
105+ * <p> Constructor for ApiException.</p>
116106 *
117107 * @param code HTTP status code
118108 * @param responseHeaders a {@link java.util.Map} of HTTP response headers
119109 * @param responseBody the response body
120110 */
121111 public ApiException (int code , Map <String , List <String >> responseHeaders , String responseBody ) {
122- this (
123- "Response Code: " + code + " Response Body: " + responseBody ,
124- (Throwable ) null ,
125- code ,
126- responseHeaders ,
127- responseBody );
112+ this ("Response Code: " + code + " Response Body: " + responseBody , (Throwable ) null , code , responseHeaders , responseBody );
128113 }
129114
130115 /**
131- * Constructor for ApiException.
116+ * <p> Constructor for ApiException.</p>
132117 *
133118 * @param code HTTP status code
134119 * @param message a {@link java.lang.String} object
@@ -139,18 +124,14 @@ public ApiException(int code, String message) {
139124 }
140125
141126 /**
142- * Constructor for ApiException.
127+ * <p> Constructor for ApiException.</p>
143128 *
144129 * @param code HTTP status code
145130 * @param message the error message
146131 * @param responseHeaders a {@link java.util.Map} of HTTP response headers
147132 * @param responseBody the response body
148133 */
149- public ApiException (
150- int code ,
151- String message ,
152- Map <String , List <String >> responseHeaders ,
153- String responseBody ) {
134+ public ApiException (int code , String message , Map <String , List <String >> responseHeaders , String responseBody ) {
154135 this (code , message );
155136 this .responseHeaders = responseHeaders ;
156137 this .responseBody = responseBody ;
@@ -189,11 +170,7 @@ public String getResponseBody() {
189170 * @return The exception message
190171 */
191172 public String getMessage () {
192- return String .format (
193- "Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s" ,
194- super .getMessage (),
195- this .getCode (),
196- this .getResponseBody (),
197- this .getResponseHeaders ());
173+ return String .format ("Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s" ,
174+ super .getMessage (), this .getCode (), this .getResponseBody (), this .getResponseHeaders ());
198175 }
199176}
0 commit comments