Class RestException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BadRequestException, EngineException, NotFoundException, UnknownHttpErrorException

public class RestException extends ExternalTaskClientException
Thrown when a request from the engine's REST API fails.
See Also:
  • Field Details

    • httpStatusCode

      protected Integer httpStatusCode
    • type

      protected String type
    • code

      protected Integer code
  • Constructor Details

  • Method Details

    • getHttpStatusCode

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

      public void setHttpStatusCode(Integer httpStatusCode)
    • getType

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

      public void setType(String type)
    • getCode

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

      public void setCode(Integer code)