Class RestAPIException

  • All Implemented Interfaces:
    Serializable

    public class RestAPIException
    extends Exception
    RestAPIException signals an error in the communication with the Imixs Rest API using the Imixs RestClient. The error code is the HTTP responce code.
    Version:
    2.0
    Author:
    rsoika
    See Also:
    RestClient, Serialized Form
    • Field Detail

      • errorContext

        protected String errorContext
      • errorCode

        protected int errorCode
    • Constructor Detail

      • RestAPIException

        public RestAPIException​(int aErrorCode,
                                String message)
      • RestAPIException

        public RestAPIException​(String aErrorContext,
                                int aErrorCode,
                                String message)
      • RestAPIException

        public RestAPIException​(String aErrorContext,
                                int aErrorCode,
                                String message,
                                Exception e)
      • RestAPIException

        public RestAPIException​(int aErrorCode,
                                String message,
                                Exception e)
    • Method Detail

      • getErrorContext

        public String getErrorContext()
      • setErrorContext

        public void setErrorContext​(String errorContext)
      • getErrorCode

        public int getErrorCode()
      • setErrorCode

        public void setErrorCode​(int errorCode)