public class TwilioRestException extends Exception
| Constructor and Description |
|---|
TwilioRestException(String message,
int errorCode)
Instantiates a new twilio rest exception.
|
TwilioRestException(String message,
int errorCode,
String moreInfo)
Instantiates a new twilio rest exception.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode()
Gets the error code.
|
String |
getErrorMessage()
Gets the error message.
|
String |
getMoreInfo()
Gets the more info.
|
static TwilioRestException |
parseResponse(TwilioRestResponse response)
Parses the response.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic TwilioRestException(String message, int errorCode)
message - the messageerrorCode - the error codepublic static TwilioRestException parseResponse(TwilioRestResponse response)
response - the responsepublic int getErrorCode()
public String getErrorMessage()
public String getMoreInfo()
Copyright © 2011 Twilio, Inc. All Rights Reserved.