Package org.camunda.bpm.client.exception
Class RestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.camunda.bpm.client.exception.ExternalTaskClientException
org.camunda.bpm.client.exception.RestException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BadRequestException
,EngineException
,NotFoundException
,UnknownHttpErrorException
Thrown when a request from the engine's REST API fails.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRestException
(String message, String type, Integer code) RestException
(String message, Throwable throwable) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
httpStatusCode
-
type
-
code
-
-
Constructor Details
-
RestException
-
RestException
-
-
Method Details
-
getHttpStatusCode
- Returns:
- the http status code from the Engine's REST API.
-
setHttpStatusCode
-
getType
- Returns:
- the exception type from the Engine's REST API.
-
setType
-
getCode
- Returns:
- the exception error code from the Engine's REST API.
-
setCode
-