Class ApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.forgerock.android.auth.exception.ApiException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AuthenticationException,AuthenticationTimeoutException,SuspendedAuthSessionException
public class ApiException extends java.lang.ExceptionBase exception for all API exceptions.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ApiException(int statusCode, java.lang.String error, java.lang.String description)Constructs a new ApiException with specified status code, error and description.ApiException(int statusCode, java.lang.String error, java.lang.String description, java.lang.Throwable cause)Constructs a new ApiException with specified status code, error and description.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetError()Gets the error/name of the exception.intgetStatusCode()Gets the status code of the exception.
-
-
-
Constructor Detail
-
ApiException
public ApiException(int statusCode, java.lang.String error, java.lang.String description)Constructs a new ApiException with specified status code, error and description.- Parameters:
statusCode- The status code of the exception. Maps to HTTP status codes.error- The error/name of the exception.description- The reason and description for the exception.
-
ApiException
public ApiException(int statusCode, java.lang.String error, java.lang.String description, java.lang.Throwable cause)Constructs a new ApiException with specified status code, error and description.- Parameters:
statusCode- The status code of the exception. Maps to HTTP status codes.error- The error/name of the exception.description- The reason and description for the exception.cause- The underlying cause of the error case.
-
-