Package org.apache.nifi.api.toolkit
Class ApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.nifi.api.toolkit.ApiException
- All Implemented Interfaces:
Serializable
@Generated(value="io.swagger.codegen.v3.generators.java.JavaClientCodegen",
date="2023-11-22T19:25:26.907436939-06:00[America/Chicago]")
public class ApiException
extends Exception
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionApiException
(int code, String message) ApiException
(int code, String message, Map<String, List<String>> responseHeaders, String responseBody) ApiException
(String message) ApiException
(String message, int code, Map<String, List<String>> responseHeaders, String responseBody) ApiException
(String message, Throwable throwable, int code, Map<String, List<String>> responseHeaders) ApiException
(String message, Throwable throwable, int code, Map<String, List<String>> responseHeaders, String responseBody) ApiException
(Throwable throwable) -
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
Get the HTTP status code.Get the HTTP response body.Get the HTTP response headers.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
code
private int code -
responseHeaders
-
responseBody
-
-
Constructor Details
-
ApiException
public ApiException() -
ApiException
-
ApiException
-
ApiException
-
ApiException
-
ApiException
-
ApiException
-
ApiException
-
ApiException
-
-
Method Details
-
getCode
public int getCode()Get the HTTP status code.- Returns:
- HTTP status code
-
getResponseHeaders
Get the HTTP response headers.- Returns:
- A map of list of string
-
getResponseBody
Get the HTTP response body.- Returns:
- Response body in the form of string
-