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