Class BaseServiceException.Error

    • Constructor Detail

      • Error

        public Error​(Integer code,
                     String reason,
                     boolean rejected)
    • Method Detail

      • getCode

        public Integer getCode()
        Returns the code associated with this exception.
      • isRejected

        public boolean isRejected()
        Returns true if the error indicates that the API call was certainly not accepted by the server. For instance, if the server returns a rate limit exceeded error, it certainly did not process the request and this method will return true.
      • getReason

        public String getReason()
        Returns the reason that caused the exception.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object