public class AuthenticationException extends ApiException
ApiException
,
Serialized FormConstructor and Description |
---|
AuthenticationException()
Constructs an
AuthenticationException with no detail message. |
AuthenticationException(int status,
java.util.Map<? extends java.lang.String,? extends java.lang.Object> errorData)
Constructs an
AuthenticationException with the specified details status
and error data. |
AuthenticationException(java.lang.String s)
Constructs an
AuthenticationException with the specified detail message. |
AuthenticationException(java.lang.String s,
java.lang.Throwable cause)
Constructs an
AuthenticationException with the specified detail message
and cause. |
AuthenticationException(java.lang.Throwable cause)
Constructs an
AuthenticationException with the specified cause. |
describe, getErrorCode, getErrorData, getMessage, getReference, getStatus
public AuthenticationException()
AuthenticationException
with no detail message.public AuthenticationException(java.lang.String s)
AuthenticationException
with the specified detail message.s
- the detail message.public AuthenticationException(java.lang.String s, java.lang.Throwable cause)
AuthenticationException
with the specified detail message
and cause.s
- the detail message.cause
- the detail message.public AuthenticationException(java.lang.Throwable cause)
AuthenticationException
with the specified cause.cause
- the detail message.public AuthenticationException(int status, java.util.Map<? extends java.lang.String,? extends java.lang.Object> errorData)
AuthenticationException
with the specified details status
and error data.status
- the HTTP status codeerrorData
- a map representing the error details returned by the API. The map is
expected to contain String
value for the key "reference"
and
a map containing the detailed error data for the key "key"
. This map in turn
is expected to contain String
values for the keys
"code"
and "message"
.ApiException