Package com.twilio.exception
Class RestException
- java.lang.Object
-
- com.twilio.exception.RestException
-
public class RestException extends Object
Twilio Exceptions.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RestExceptionfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Build an exception from a JSON blob.IntegergetCode()Map<String,Object>getDetails()StringgetMessage()StringgetMoreInfo()IntegergetStatus()
-
-
-
Method Detail
-
fromJson
public static RestException fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Build an exception from a JSON blob.- Parameters:
json- JSON blobobjectMapper- JSON reader- Returns:
- Rest Exception as an object
-
getCode
public Integer getCode()
-
getMessage
public String getMessage()
-
getMoreInfo
public String getMoreInfo()
-
getStatus
public Integer getStatus()
-
-