public class InvalidActionException extends AppianException
ApplicationAction
element.
The error code contains the specific information of the issue that produced the exception.Modifier and Type | Field and Description |
---|---|
protected ErrorCode |
errorCode |
protected java.lang.Object[] |
errorCodeArguments |
Constructor and Description |
---|
InvalidActionException()
Creates a new exception with a default
ErrorCode.INVALID_ACTION code. |
InvalidActionException(ErrorCode errorCode)
Creates a new exception with the passed error code, which indicates the reason of the
exception.
|
InvalidActionException(ErrorCode errorCode,
java.lang.String[] errorCodeArguments)
Creates a new exception with the passed error code, which indicates the reason of the
exception.
|
Modifier and Type | Method and Description |
---|---|
ErrorCode |
getErrorCode()
Gets the error code associated with this exception.
|
java.lang.Object[] |
getErrorCodeArguments()
Gets the arguments that must be used to render this exception's message
representation.
|
getErrorCodeArguments, getErrorCodeArgumentsAsStringArray, getLocalizedMessage, getLocalizedMessage, getLocalizedMessageWithErrorCode, getLocalizedTitle, getMessage, toString
protected ErrorCode errorCode
protected java.lang.Object[] errorCodeArguments
public InvalidActionException()
ErrorCode.INVALID_ACTION
code.public InvalidActionException(ErrorCode errorCode)
errorCode
- The associated error code.public InvalidActionException(ErrorCode errorCode, java.lang.String[] errorCodeArguments)
errorCode
- The associated error code.errorCodeArguments
- The error code arguments.public java.lang.Object[] getErrorCodeArguments()
AppianException
AppianException.getErrorCodeArguments(Locale)
hasn't been
overwritten.getErrorCodeArguments
in class AppianException
ErrorCode.GENERIC_ERROR
public ErrorCode getErrorCode()
AppianException
getErrorCode
in class AppianException
ErrorCode.GENERIC_ERROR
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.