public class AuthleteApiException extends RuntimeException
| Constructor and Description |
|---|
AuthleteApiException()
Constructor.
|
AuthleteApiException(int statusCode,
String statusMessage,
String responseBody)
Constructor with HTTP response information.
|
AuthleteApiException(String message)
Constructor with an error message.
|
AuthleteApiException(String message,
int statusCode,
String statusMessage,
String responseBody)
Constructor with an error message and HTTP response information.
|
AuthleteApiException(String message,
int statusCode,
String statusMessage,
String responseBody,
Map<String,List<String>> responseHeaders)
Constructor with an error message and HTTP response information.
|
AuthleteApiException(String message,
Throwable cause)
Constructor with an error message and the cause.
|
AuthleteApiException(String message,
Throwable cause,
int statusCode,
String statusMessage,
String responseBody)
Constructor with an error message, the cause and HTTP response information.
|
AuthleteApiException(String message,
Throwable cause,
int statusCode,
String statusMessage,
String responseBody,
Map<String,List<String>> responseHeaders)
Constructor with an error message, the cause and HTTP response information.
|
AuthleteApiException(Throwable cause)
Constructor with the cause.
|
AuthleteApiException(Throwable cause,
int statusCode,
String statusMessage,
String responseBody)
Constructor with the cause and HTTP response information.
|
AuthleteApiException(Throwable cause,
int statusCode,
String statusMessage,
String responseBody,
Map<String,List<String>> responseHeaders)
Constructor with the cause and HTTP response information.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getResponseBody()
Get the response body contained in the response from Authlete server.
|
Map<String,List<String>> |
getResponseHeaders()
Get the response headers contained in the response from Authlete server.
|
int |
getStatusCode()
Get the HTTP status code contained in the response from Authlete server.
|
String |
getStatusMessage()
Get the HTTP status message contained in the response from Authlete server.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AuthleteApiException()
public AuthleteApiException(int statusCode,
String statusMessage,
String responseBody)
statusCode - HTTP status code.statusMessage - HTTP status message.responseBody - HTTP response body.public AuthleteApiException(String message)
message - Error message.public AuthleteApiException(String message, int statusCode, String statusMessage, String responseBody)
message - Error message.statusCode - HTTP status code.statusMessage - HTTP status message.responseBody - HTTP response body.public AuthleteApiException(String message, int statusCode, String statusMessage, String responseBody, Map<String,List<String>> responseHeaders)
message - Error message.statusCode - HTTP status code.statusMessage - HTTP status message.responseBody - HTTP response body.responseHeaders - Http response headers.public AuthleteApiException(Throwable cause)
cause - The cause of this exception.public AuthleteApiException(Throwable cause, int statusCode, String statusMessage, String responseBody)
cause - The cause of this exception.statusCode - HTTP status code.statusMessage - HTTP status message.responseBody - HTTP response body.public AuthleteApiException(Throwable cause, int statusCode, String statusMessage, String responseBody, Map<String,List<String>> responseHeaders)
cause - The cause of this exception.statusCode - HTTP status code.statusMessage - HTTP status message.responseBody - HTTP response body.responseHeaders - HTTP response headers.public AuthleteApiException(String message, Throwable cause)
message - Error message.cause - The cause of this exception.public AuthleteApiException(String message, Throwable cause, int statusCode, String statusMessage, String responseBody)
message - Error message.cause - The cause of this exception.statusCode - HTTP status code.statusMessage - HTTP status message.responseBody - HTTP response body.public AuthleteApiException(String message, Throwable cause, int statusCode, String statusMessage, String responseBody, Map<String,List<String>> responseHeaders)
message - Error message.cause - The cause of this exception.statusCode - HTTP status code.statusMessage - HTTP status message.responseBody - HTTP response body.responseHeaders - HTTP response headers.public int getStatusCode()
Note that this method may return 0 if this exception was raised before the response from Authlete server was obtained.
public String getStatusMessage()
Note that this method may return null if this exception was raised
before the response from Authlete server was obtained.
public String getResponseBody()
Note that this method may return null if this exception was raised
before the response from Authlete server was obtained or if the response
did not contain any content.
public Map<String,List<String>> getResponseHeaders()
Note that this method may return null if this exception was raised
before the response from Authlete server was obtained.
Copyright © 2019. All rights reserved.