Package com.docusign.esign.client
Class ApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.docusign.esign.client.ApiException
-
- All Implemented Interfaces:
Serializable
public class ApiException extends Exception
ApiException class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ApiException()ApiException constructor.ApiException(int code, String message)ApiException constructor.ApiException(int code, String message, Map<String,List<String>> responseHeaders, String responseBody)ApiException constructor.ApiException(int code, Map<String,List<String>> responseHeaders, String responseBody)ApiException constructor.ApiException(String message)ApiException constructor.ApiException(String message, int code, Map<String,List<String>> responseHeaders, String responseBody)ApiException constructor.ApiException(String message, Throwable throwable, int code, Map<String,List<String>> responseHeaders)ApiException constructor.ApiException(String message, Throwable throwable, int code, Map<String,List<String>> responseHeaders, String responseBody)ApiException constructor.ApiException(Throwable throwable)ApiException constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()Get the HTTP status code.StringgetResponseBody()Get the HTTP response body.Map<String,List<String>>getResponseHeaders()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
-
-
-
-
Constructor Detail
-
ApiException
public ApiException()
ApiException constructor.
-
ApiException
public ApiException(Throwable throwable)
ApiException constructor.- Parameters:
throwable- The Throwable type
-
ApiException
public ApiException(String message)
ApiException constructor.- Parameters:
message- The string message
-
ApiException
public ApiException(String message, Throwable throwable, int code, Map<String,List<String>> responseHeaders, String responseBody)
ApiException constructor.- Parameters:
message- The string messagethrowable- The Throwable typecode- The error coderesponseHeaders- The response headersresponseBody- The body of response
-
ApiException
public ApiException(String message, int code, Map<String,List<String>> responseHeaders, String responseBody)
ApiException constructor.- Parameters:
message- The string messagecode- The error coderesponseHeaders- The response headersresponseBody- The body of response
-
ApiException
public ApiException(String message, Throwable throwable, int code, Map<String,List<String>> responseHeaders)
ApiException constructor.- Parameters:
message- The string messagethrowable- The Throwable typecode- The error coderesponseHeaders- The response headers
-
ApiException
public ApiException(int code, Map<String,List<String>> responseHeaders, String responseBody)ApiException constructor.- Parameters:
code- The error coderesponseHeaders- The response headersresponseBody- The body of response
-
ApiException
public ApiException(int code, String message)ApiException constructor.- Parameters:
code- The error codemessage- The string message
-
-
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
-
-