Package com.twilio.voice
Class VoiceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.twilio.voice.VoiceException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CallException
,RegistrationException
public class VoiceException extends java.lang.Exception
A parent class of allVoice
exceptions.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
EXCEPTION_ACCESS_TOKEN_REJECTED
static int
EXCEPTION_AUTH_FAILURE
static int
EXCEPTION_BAD_GATEWAY
static int
EXCEPTION_BAD_REQUEST
static int
EXCEPTION_FORBIDDEN
static int
EXCEPTION_GATEWAY_TIMEOUT
static int
EXCEPTION_INTERNAL_SERVER_ERROR
static int
EXCEPTION_INVALID_ACCESS_TOKEN
static int
EXCEPTION_INVALID_ACCESS_TOKEN_EXPIRY
static int
EXCEPTION_INVALID_ACCESS_TOKEN_GRANT
static int
EXCEPTION_INVALID_ACCESS_TOKEN_HEADER
static int
EXCEPTION_INVALID_ACCESS_TOKEN_NOT_VALID_YET
static int
EXCEPTION_INVALID_ISSUER_SUBJECT
static int
EXCEPTION_INVALID_SIGNATURE
static int
EXCEPTION_INVALID_TOKEN
static int
EXCEPTION_INVALID_TTL
static int
EXCEPTION_NOT_FOUND
static int
EXCEPTION_REQUEST_TIMEOUT
static int
EXCEPTION_SERVICE_UNAVAILABLE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getErrorCode()
java.lang.String
getExplanation()
Returns the explanation related to the exception.java.lang.String
getMessage()
-
-
-
Field Detail
-
EXCEPTION_INVALID_ACCESS_TOKEN
public static final int EXCEPTION_INVALID_ACCESS_TOKEN
- See Also:
- Constant Field Values
-
EXCEPTION_INVALID_ACCESS_TOKEN_HEADER
public static final int EXCEPTION_INVALID_ACCESS_TOKEN_HEADER
- See Also:
- Constant Field Values
-
EXCEPTION_INVALID_ISSUER_SUBJECT
public static final int EXCEPTION_INVALID_ISSUER_SUBJECT
- See Also:
- Constant Field Values
-
EXCEPTION_INVALID_ACCESS_TOKEN_EXPIRY
public static final int EXCEPTION_INVALID_ACCESS_TOKEN_EXPIRY
- See Also:
- Constant Field Values
-
EXCEPTION_INVALID_ACCESS_TOKEN_NOT_VALID_YET
public static final int EXCEPTION_INVALID_ACCESS_TOKEN_NOT_VALID_YET
- See Also:
- Constant Field Values
-
EXCEPTION_INVALID_ACCESS_TOKEN_GRANT
public static final int EXCEPTION_INVALID_ACCESS_TOKEN_GRANT
- See Also:
- Constant Field Values
-
EXCEPTION_INVALID_SIGNATURE
public static final int EXCEPTION_INVALID_SIGNATURE
- See Also:
- Constant Field Values
-
EXCEPTION_AUTH_FAILURE
public static final int EXCEPTION_AUTH_FAILURE
- See Also:
- Constant Field Values
-
EXCEPTION_INVALID_TTL
public static final int EXCEPTION_INVALID_TTL
- See Also:
- Constant Field Values
-
EXCEPTION_INVALID_TOKEN
public static final int EXCEPTION_INVALID_TOKEN
- See Also:
- Constant Field Values
-
EXCEPTION_ACCESS_TOKEN_REJECTED
public static final int EXCEPTION_ACCESS_TOKEN_REJECTED
- See Also:
- Constant Field Values
-
EXCEPTION_BAD_REQUEST
public static final int EXCEPTION_BAD_REQUEST
- See Also:
- Constant Field Values
-
EXCEPTION_FORBIDDEN
public static final int EXCEPTION_FORBIDDEN
- See Also:
- Constant Field Values
-
EXCEPTION_NOT_FOUND
public static final int EXCEPTION_NOT_FOUND
- See Also:
- Constant Field Values
-
EXCEPTION_REQUEST_TIMEOUT
public static final int EXCEPTION_REQUEST_TIMEOUT
- See Also:
- Constant Field Values
-
EXCEPTION_INTERNAL_SERVER_ERROR
public static final int EXCEPTION_INTERNAL_SERVER_ERROR
- See Also:
- Constant Field Values
-
EXCEPTION_BAD_GATEWAY
public static final int EXCEPTION_BAD_GATEWAY
- See Also:
- Constant Field Values
-
EXCEPTION_SERVICE_UNAVAILABLE
public static final int EXCEPTION_SERVICE_UNAVAILABLE
- See Also:
- Constant Field Values
-
EXCEPTION_GATEWAY_TIMEOUT
public static final int EXCEPTION_GATEWAY_TIMEOUT
- See Also:
- Constant Field Values
-
-