public class ActionExecutorException extends Exception
The exception provides information regarding the transient/no-transient/fatal nature of the exception.
Modifier and Type | Class and Description |
---|---|
static class |
ActionExecutorException.ErrorType
Enum that defines the type of error an
ActionExecutor has produced. |
Constructor and Description |
---|
ActionExecutorException(ActionExecutorException.ErrorType errorType,
String errorCode,
String message)
Create an action executor exception.
|
ActionExecutorException(ActionExecutorException.ErrorType errorType,
String errorCode,
String messageTemplate,
Object... params)
Create an action executor exception.
|
Modifier and Type | Method and Description |
---|---|
String |
getErrorCode()
Return the error code of the exception.
|
ActionExecutorException.ErrorType |
getErrorType()
Return the error type of the exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ActionExecutorException(ActionExecutorException.ErrorType errorType, String errorCode, String message)
errorType
- the error type.errorCode
- the error code.message
- the error message.public ActionExecutorException(ActionExecutorException.ErrorType errorType, String errorCode, String messageTemplate, Object... params)
If the last parameter is an Exception it is used as the exception cause.
errorType
- the error type.errorCode
- the error code.messageTemplate
- the error message.params
- parameters used to create the exception message together with the messageTemplate. If the last
parameter is an Exception it is used as the exception cause.public ActionExecutorException.ErrorType getErrorType()
public String getErrorCode()
Copyright © 2018 Apache Software Foundation. All rights reserved.