Class RestException


  • public class RestException
    extends Object
    Twilio Exceptions.
    • 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 blob
        objectMapper - JSON reader
        Returns:
        Rest Exception as an object
      • getCode

        public Integer getCode()
      • getMessage

        public String getMessage()
      • getMoreInfo

        public String getMoreInfo()
      • getStatus

        public Integer getStatus()