Package com.twilio.voice
Class VoiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.twilio.voice.VoiceException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CallException
,RegistrationException
A parent class of all
Voice
exceptions.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the explanation related to the exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
EXCEPTION_INVALID_ACCESS_TOKEN
public static final int EXCEPTION_INVALID_ACCESS_TOKEN- See Also:
-
EXCEPTION_INVALID_ACCESS_TOKEN_HEADER
public static final int EXCEPTION_INVALID_ACCESS_TOKEN_HEADER- See Also:
-
EXCEPTION_INVALID_ISSUER_SUBJECT
public static final int EXCEPTION_INVALID_ISSUER_SUBJECT- See Also:
-
EXCEPTION_INVALID_ACCESS_TOKEN_EXPIRY
public static final int EXCEPTION_INVALID_ACCESS_TOKEN_EXPIRY- See Also:
-
EXCEPTION_INVALID_ACCESS_TOKEN_NOT_VALID_YET
public static final int EXCEPTION_INVALID_ACCESS_TOKEN_NOT_VALID_YET- See Also:
-
EXCEPTION_INVALID_ACCESS_TOKEN_GRANT
public static final int EXCEPTION_INVALID_ACCESS_TOKEN_GRANT- See Also:
-
EXCEPTION_INVALID_SIGNATURE
public static final int EXCEPTION_INVALID_SIGNATURE- See Also:
-
EXCEPTION_AUTH_FAILURE
public static final int EXCEPTION_AUTH_FAILURE- See Also:
-
EXCEPTION_INVALID_TTL
public static final int EXCEPTION_INVALID_TTL- See Also:
-
EXCEPTION_INVALID_TOKEN
public static final int EXCEPTION_INVALID_TOKEN- See Also:
-
EXCEPTION_ACCESS_TOKEN_REJECTED
public static final int EXCEPTION_ACCESS_TOKEN_REJECTED- See Also:
-
EXCEPTION_BAD_REQUEST
public static final int EXCEPTION_BAD_REQUEST- See Also:
-
EXCEPTION_FORBIDDEN
public static final int EXCEPTION_FORBIDDEN- See Also:
-
EXCEPTION_NOT_FOUND
public static final int EXCEPTION_NOT_FOUND- See Also:
-
EXCEPTION_REQUEST_TIMEOUT
public static final int EXCEPTION_REQUEST_TIMEOUT- See Also:
-
EXCEPTION_INTERNAL_SERVER_ERROR
public static final int EXCEPTION_INTERNAL_SERVER_ERROR- See Also:
-
EXCEPTION_BAD_GATEWAY
public static final int EXCEPTION_BAD_GATEWAY- See Also:
-
EXCEPTION_SERVICE_UNAVAILABLE
public static final int EXCEPTION_SERVICE_UNAVAILABLE- See Also:
-
EXCEPTION_GATEWAY_TIMEOUT
public static final int EXCEPTION_GATEWAY_TIMEOUT- See Also:
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getErrorCode
public int getErrorCode() -
getExplanation
Returns the explanation related to the exception. This value may be null in some cases.
-