Package com.twitter.clientlib
Class ApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.twitter.clientlib.ApiException
-
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ApiException extends Exception
ApiException class.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ApiException()Constructor for ApiException.ApiException(int code, String message)Constructor for ApiException.ApiException(int code, String message, Map<String,List<String>> responseHeaders, String responseBody)Constructor for ApiException.ApiException(int code, Map<String,List<String>> responseHeaders, String responseBody)Constructor for ApiException.ApiException(String message)Constructor for ApiException.ApiException(String message, int code, Map<String,List<String>> responseHeaders, String responseBody)Constructor for ApiException.ApiException(String message, Throwable throwable, int code, Map<String,List<String>> responseHeaders)Constructor for ApiException.ApiException(String message, Throwable throwable, int code, Map<String,List<String>> responseHeaders, String responseBody)Constructor for ApiException.ApiException(Throwable throwable)Constructor for ApiException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()Get the HTTP status code.ProblemOrErrorgetErrorObject()Get the error object.javax.ws.rs.core.GenericTypegetErrorObjectType()Get the error object type.StringgetResponseBody()Get the HTTP response body.Map<String,List<String>>getResponseHeaders()Get the HTTP response headers.voidsetErrorObject(ProblemOrError errorObject)Get the error object.voidsetErrorObjectType(javax.ws.rs.core.GenericType errorObjectType)Set the error object type.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ApiException
public ApiException()
Constructor for ApiException.
-
ApiException
public ApiException(Throwable throwable)
Constructor for ApiException.
- Parameters:
throwable- aThrowableobject
-
ApiException
public ApiException(String message)
Constructor for ApiException.
- Parameters:
message- the error message
-
ApiException
public ApiException(String message, Throwable throwable, int code, Map<String,List<String>> responseHeaders, String responseBody)
Constructor for ApiException.
-
ApiException
public ApiException(String message, int code, Map<String,List<String>> responseHeaders, String responseBody)
Constructor for ApiException.
- Parameters:
message- the error messagecode- HTTP status coderesponseHeaders- aMapof HTTP response headersresponseBody- the response body
-
ApiException
public ApiException(String message, Throwable throwable, int code, Map<String,List<String>> responseHeaders)
Constructor for ApiException.
-
ApiException
public ApiException(int code, Map<String,List<String>> responseHeaders, String responseBody)Constructor for ApiException.
- Parameters:
code- HTTP status coderesponseHeaders- aMapof HTTP response headersresponseBody- the response body
-
ApiException
public ApiException(int code, String message)Constructor for ApiException.
- Parameters:
code- HTTP status codemessage- aStringobject
-
-
Method Detail
-
getCode
public int getCode()
Get the HTTP status code.- Returns:
- HTTP status code
-
getResponseHeaders
public Map<String,List<String>> getResponseHeaders()
Get the HTTP response headers.- Returns:
- A map of list of string
-
getResponseBody
public String getResponseBody()
Get the HTTP response body.- Returns:
- Response body in the form of string
-
getErrorObjectType
public javax.ws.rs.core.GenericType getErrorObjectType()
Get the error object type.- Returns:
- Error object type
-
setErrorObjectType
public void setErrorObjectType(javax.ws.rs.core.GenericType errorObjectType)
Set the error object type.- Parameters:
errorObjectType- object type
-
getErrorObject
public ProblemOrError getErrorObject()
Get the error object.- Returns:
- Error object
-
setErrorObject
public void setErrorObject(ProblemOrError errorObject)
Get the error object.- Parameters:
errorObject- Error object
-
-