Package org.imixs.workflow.services.rest
Class RestAPIException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.imixs.workflow.services.rest.RestAPIException
- All Implemented Interfaces:
Serializable
RestAPIException signals an error in the communication with the Imixs Rest
API using the Imixs RestClient. The error code is the HTTP responce code.
- Version:
- 2.0
- Author:
- rsoika
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRestAPIException
(int aErrorCode, String message) RestAPIException
(int aErrorCode, String message, Exception e) RestAPIException
(String aErrorContext, int aErrorCode, String message) RestAPIException
(String aErrorContext, int aErrorCode, String message, Exception e) -
Method Summary
Modifier and TypeMethodDescriptionint
void
setErrorCode
(int errorCode) void
setErrorContext
(String errorContext) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
errorContext
-
errorCode
protected int errorCode
-
-
Constructor Details
-
RestAPIException
-
RestAPIException
-
RestAPIException
-
RestAPIException
-
-
Method Details
-
getErrorContext
-
setErrorContext
-
getErrorCode
public int getErrorCode() -
setErrorCode
public void setErrorCode(int errorCode)
-