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
public class RestException extends ExternalTaskClientException
Thrown when a request from the engine's REST API fails.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RestException(String message, String type, Integer code)
RestException(String message, Throwable throwable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getCode()
Integer
getHttpStatusCode()
String
getType()
void
setCode(Integer code)
void
setHttpStatusCode(Integer httpStatusCode)
void
setType(String type)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
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)
-
-