|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.twilio.sdk.TwilioRestException
public class TwilioRestException
See: https://www.twilio.com/docs/errors/ for more info
| Constructor Summary | |
|---|---|
TwilioRestException(String message,
int errorCode)
Instantiates a new twilio rest exception. |
|
TwilioRestException(String message,
int errorCode,
String moreInfo)
Instantiates a new twilio rest exception. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TwilioRestException(String message,
int errorCode)
message - the messageerrorCode - the error code
public TwilioRestException(String message,
int errorCode,
String moreInfo)
message - the messageerrorCode - the error codemoreInfo - the more info| Method Detail |
|---|
public static TwilioRestException parseResponse(TwilioRestResponse response)
response - the response
public int getErrorCode()
public String getErrorMessage()
public String getMoreInfo()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||