|
| 1 | +/* |
| 2 | + * FastReport Cloud |
| 3 | + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) |
| 4 | + * |
| 5 | + * The version of the OpenAPI document: v1 |
| 6 | + * |
| 7 | + * |
| 8 | + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| 9 | + * https://openapi-generator.tech |
| 10 | + * Do not edit the class manually. |
| 11 | + */ |
| 12 | + |
| 13 | + |
| 14 | +package cloud.fastreport; |
| 15 | + |
| 16 | +import java.net.http.HttpHeaders; |
| 17 | + |
| 18 | +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") |
| 19 | +public class ApiException extends Exception { |
| 20 | + private int code = 0; |
| 21 | + private HttpHeaders responseHeaders = null; |
| 22 | + private String responseBody = null; |
| 23 | + |
| 24 | + public ApiException() {} |
| 25 | + |
| 26 | + public ApiException(Throwable throwable) { |
| 27 | + super(throwable); |
| 28 | + } |
| 29 | + |
| 30 | + public ApiException(String message) { |
| 31 | + super(message); |
| 32 | + } |
| 33 | + |
| 34 | + public ApiException(String message, Throwable throwable, int code, HttpHeaders responseHeaders, String responseBody) { |
| 35 | + super(message, throwable); |
| 36 | + this.code = code; |
| 37 | + this.responseHeaders = responseHeaders; |
| 38 | + this.responseBody = responseBody; |
| 39 | + } |
| 40 | + |
| 41 | + public ApiException(String message, int code, HttpHeaders responseHeaders, String responseBody) { |
| 42 | + this(message, (Throwable) null, code, responseHeaders, responseBody); |
| 43 | + } |
| 44 | + |
| 45 | + public ApiException(String message, Throwable throwable, int code, HttpHeaders responseHeaders) { |
| 46 | + this(message, throwable, code, responseHeaders, null); |
| 47 | + } |
| 48 | + |
| 49 | + public ApiException(int code, HttpHeaders responseHeaders, String responseBody) { |
| 50 | + this((String) null, (Throwable) null, code, responseHeaders, responseBody); |
| 51 | + } |
| 52 | + |
| 53 | + public ApiException(int code, String message) { |
| 54 | + super(message); |
| 55 | + this.code = code; |
| 56 | + } |
| 57 | + |
| 58 | + public ApiException(int code, String message, HttpHeaders responseHeaders, String responseBody) { |
| 59 | + this(code, message); |
| 60 | + this.responseHeaders = responseHeaders; |
| 61 | + this.responseBody = responseBody; |
| 62 | + } |
| 63 | + |
| 64 | + /** |
| 65 | + * Get the HTTP status code. |
| 66 | + * |
| 67 | + * @return HTTP status code |
| 68 | + */ |
| 69 | + public int getCode() { |
| 70 | + return code; |
| 71 | + } |
| 72 | + |
| 73 | + /** |
| 74 | + * Get the HTTP response headers. |
| 75 | + * |
| 76 | + * @return Headers as an HttpHeaders object |
| 77 | + */ |
| 78 | + public HttpHeaders getResponseHeaders() { |
| 79 | + return responseHeaders; |
| 80 | + } |
| 81 | + |
| 82 | + /** |
| 83 | + * Get the HTTP response body. |
| 84 | + * |
| 85 | + * @return Response body in the form of string |
| 86 | + */ |
| 87 | + public String getResponseBody() { |
| 88 | + return responseBody; |
| 89 | + } |
| 90 | +} |
0 commit comments