Package io.tiledb.cloud.rest_api
Class ApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- io.tiledb.cloud.rest_api.ApiException
-
- All Implemented Interfaces:
java.io.Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ApiException extends java.lang.Exception
ApiException 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 int
getCode()
Get the HTTP status code.java.lang.String
getMessage()
Get the exception message including HTTP response data.java.lang.String
getResponseBody()
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
- aThrowable
object
-
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
- aThrowable
objectcode
- HTTP status coderesponseHeaders
- aMap
of 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
- aMap
of 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
- aThrowable
objectcode
- HTTP status coderesponseHeaders
- aMap
of 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
- aMap
of HTTP response headersresponseBody
- the response body
-
ApiException
public ApiException(int code, java.lang.String message)
Constructor for ApiException.
- Parameters:
code
- HTTP status codemessage
- aString
object
-
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
- aMap
of 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:
getMessage
in classjava.lang.Throwable
- Returns:
- The exception message
-
-