public class InrixException extends RuntimeException
Modifier and Type | Field and Description |
---|---|
static int |
API_NOT_AVAILABLE
Indicates that an API is not available.
|
static int |
CALLBACK_REQUIRED
Indicates that a callback is required.
|
static int |
INVALID_GEOPOINT
Indicates that a GeoPoint is not valid.
|
static int |
INVALID_RESPONSE
Indicates that a response is not valid.
|
static int |
NOT_INITIALIZED
Indicates that SDK is not initialized.
|
static int |
OPTIONS_REQUIRED
Indicates that request options are required.
|
static int |
PARAMETER_NULL
Indicates that a parameter is null when it should not be.
|
Constructor and Description |
---|
InrixException(int errorCode)
Initializes a new instance of the
InrixException class with an error code. |
InrixException(String errorMessage,
int errorCode)
Initializes a new instance of the
InrixException class
with an error message and code. |
Modifier and Type | Method and Description |
---|---|
<T extends InrixException> |
as(Class<T> cls)
Converts current instance into specified type.
|
static InrixException |
getCallbackRequiredException() |
int |
getErrorCode()
Gets the error code of this exception.
|
static InrixException |
getOptionsRequiredException() |
static InrixException |
getParameterNullException(String paramName) |
static com.android.volley.VolleyError |
getVolleyError(int errorCode)
Creates a volley error from the specified error code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int NOT_INITIALIZED
public static final int OPTIONS_REQUIRED
public static final int CALLBACK_REQUIRED
public static final int PARAMETER_NULL
public static final int INVALID_GEOPOINT
public static final int API_NOT_AVAILABLE
public static final int INVALID_RESPONSE
public InrixException(int errorCode)
InrixException
class with an error code.errorCode
- The error code associated with this exception.public InrixException(String errorMessage, int errorCode)
InrixException
class
with an error message and code.errorMessage
- The error message associated with this exception.errorCode
- The error code associated with this exception.public final int getErrorCode()
public static com.android.volley.VolleyError getVolleyError(int errorCode)
errorCode
- The error code value.com.android.volley.VolleyError
.public static InrixException getOptionsRequiredException()
public static InrixException getCallbackRequiredException()
public static InrixException getParameterNullException(String paramName)
public final <T extends InrixException> T as(Class<T> cls)
cls
- Target type class.Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.