Package com.launchdarkly.api
Class ApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.launchdarkly.api.ApiException
-
- All Implemented Interfaces:
java.io.Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-11-16T23:57:26.096741Z[Etc/UTC]") public class ApiException extends java.lang.ExceptionApiException class.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ApiException()Constructor for ApiException.ApiException(int code, java.lang.String message)Constructor for ApiException.ApiException(int code, java.lang.String message, java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders, java.lang.String responseBody)Constructor for ApiException.ApiException(int code, java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders, java.lang.String responseBody)Constructor for ApiException.ApiException(java.lang.String message)Constructor for ApiException.ApiException(java.lang.String message, int code, java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders, java.lang.String responseBody)Constructor for ApiException.ApiException(java.lang.String message, java.lang.Throwable throwable, int code, java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders)Constructor for ApiException.ApiException(java.lang.String message, java.lang.Throwable throwable, int code, java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders, java.lang.String responseBody)Constructor for ApiException.ApiException(java.lang.Throwable throwable)Constructor for ApiException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()Get the HTTP status code.java.lang.StringgetMessage()Get the exception message including HTTP response data.java.lang.StringgetResponseBody()Get the HTTP response body.java.util.Map<java.lang.String,java.util.List<java.lang.String>>getResponseHeaders()Get the HTTP response headers.
-
-
-
Constructor Detail
-
ApiException
public ApiException()
Constructor for ApiException.
-
ApiException
public ApiException(java.lang.Throwable throwable)
Constructor for ApiException.
- Parameters:
throwable- aThrowableobject
-
ApiException
public ApiException(java.lang.String message)
Constructor for ApiException.
- Parameters:
message- the error message
-
ApiException
public ApiException(java.lang.String message, java.lang.Throwable throwable, int code, java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders, java.lang.String responseBody)Constructor for ApiException.
- Parameters:
message- the error messagethrowable- aThrowableobjectcode- HTTP status coderesponseHeaders- aMapof HTTP response headersresponseBody- the response body
-
ApiException
public ApiException(java.lang.String message, int code, java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders, java.lang.String responseBody)Constructor for ApiException.
- Parameters:
message- the error messagecode- HTTP status coderesponseHeaders- aMapof HTTP response headersresponseBody- the response body
-
ApiException
public ApiException(java.lang.String message, java.lang.Throwable throwable, int code, java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders)Constructor for ApiException.
- Parameters:
message- the error messagethrowable- aThrowableobjectcode- HTTP status coderesponseHeaders- aMapof HTTP response headers
-
ApiException
public ApiException(int code, java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders, java.lang.String responseBody)Constructor for ApiException.
- Parameters:
code- HTTP status coderesponseHeaders- aMapof HTTP response headersresponseBody- the response body
-
ApiException
public ApiException(int code, java.lang.String message)Constructor for ApiException.
- Parameters:
code- HTTP status codemessage- aStringobject
-
ApiException
public ApiException(int code, java.lang.String message, java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders, java.lang.String responseBody)Constructor for ApiException.
- Parameters:
code- HTTP status codemessage- the error messageresponseHeaders- aMapof HTTP response headersresponseBody- the response body
-
-
Method Detail
-
getCode
public int getCode()
Get the HTTP status code.- Returns:
- HTTP status code
-
getResponseHeaders
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getResponseHeaders()
Get the HTTP response headers.- Returns:
- A map of list of string
-
getResponseBody
public java.lang.String getResponseBody()
Get the HTTP response body.- Returns:
- Response body in the form of string
-
getMessage
public java.lang.String getMessage()
Get the exception message including HTTP response data.- Overrides:
getMessagein classjava.lang.Throwable- Returns:
- The exception message
-
-