Class RestException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Integer code  
      protected java.lang.Integer httpStatusCode  
      protected java.lang.String type  
    • Constructor Summary

      Constructors 
      Constructor Description
      RestException​(java.lang.String message, java.lang.String type, java.lang.Integer code)  
      RestException​(java.lang.String message, java.lang.Throwable throwable)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer getCode()  
      java.lang.Integer getHttpStatusCode()  
      java.lang.String getType()  
      void setCode​(java.lang.Integer code)  
      void setHttpStatusCode​(java.lang.Integer httpStatusCode)  
      void setType​(java.lang.String type)  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • httpStatusCode

        protected java.lang.Integer httpStatusCode
      • type

        protected java.lang.String type
      • code

        protected java.lang.Integer code
    • Constructor Detail

      • RestException

        public RestException​(java.lang.String message,
                             java.lang.String type,
                             java.lang.Integer code)
      • RestException

        public RestException​(java.lang.String message,
                             java.lang.Throwable throwable)
    • Method Detail

      • getHttpStatusCode

        public java.lang.Integer getHttpStatusCode()
        Returns:
        the http status code from the Engine's REST API.
      • setHttpStatusCode

        public void setHttpStatusCode​(java.lang.Integer httpStatusCode)
      • getType

        public java.lang.String getType()
        Returns:
        the exception type from the Engine's REST API.
      • setType

        public void setType​(java.lang.String type)
      • getCode

        public java.lang.Integer getCode()
        Returns:
        the exception error code from the Engine's REST API.
      • setCode

        public void setCode​(java.lang.Integer code)