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:
java.io.Serializable
- Direct Known Subclasses:
NotAcquiredException,NotFoundException,NotResumedException,UnknownHttpErrorException
public class RestException extends ExternalTaskClientException
Thrown when a request from the engine's REST API fails.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Integercodeprotected java.lang.IntegerhttpStatusCodeprotected java.lang.Stringtype
-
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.IntegergetCode()java.lang.IntegergetHttpStatusCode()java.lang.StringgetType()voidsetCode(java.lang.Integer code)voidsetHttpStatusCode(java.lang.Integer httpStatusCode)voidsetType(java.lang.String type)
-
-
-
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)
-
-