public class ApiException extends TwilioException
Constructor and Description |
---|
ApiException(String message)
Create a new API Exception.
|
ApiException(String message,
Integer code,
String moreInfo,
Integer status,
Throwable cause)
Create a new API Exception.
|
ApiException(String message,
Throwable cause)
Create a new API Exception.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
String |
getMoreInfo() |
int |
getStatusCode() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ApiException(String message)
message
- exception messagepublic ApiException(String message, Throwable cause)
message
- exception messagecause
- cause of the exceptionpublic ApiException(String message, Integer code, String moreInfo, Integer status, Throwable cause)
message
- exception messagecode
- exception codemoreInfo
- more information if availablestatus
- status codecause
- cause of the exception* @param causepublic int getCode()
public String getMoreInfo()
public int getStatusCode()
Copyright © 2011 Twilio, Inc. All Rights Reserved.