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.Integer
code
protected java.lang.Integer
httpStatusCode
protected java.lang.String
type
-
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.Integer
getCode()
java.lang.Integer
getHttpStatusCode()
java.lang.String
getType()
void
setCode(java.lang.Integer code)
void
setHttpStatusCode(java.lang.Integer httpStatusCode)
void
setType(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)
-
-