public class ActionExecutorException extends java.lang.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,
java.lang.String errorCode,
java.lang.String message)
Create an action executor exception.
|
ActionExecutorException(ActionExecutorException.ErrorType errorType,
java.lang.String errorCode,
java.lang.String messageTemplate,
java.lang.Object... params)
Create an action executor exception.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getErrorCode()
Return the error code of the exception.
|
ActionExecutorException.ErrorType |
getErrorType()
Return the error type of the exception.
|
public ActionExecutorException(ActionExecutorException.ErrorType errorType, java.lang.String errorCode, java.lang.String message)
errorType - the error type.errorCode - the error code.message - the error message.public ActionExecutorException(ActionExecutorException.ErrorType errorType, java.lang.String errorCode, java.lang.String messageTemplate, java.lang.Object... params)
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 java.lang.String getErrorCode()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.