Class InvalidActionException

All Implemented Interfaces:
Serializable

public class InvalidActionException extends AppianException
Exception thrown to indicate an invalid ApplicationAction element. The error code contains the specific information of the issue that produced the exception.
See Also:
  • Field Details

    • errorCode

      protected ErrorCode errorCode
    • errorCodeArguments

      protected Object[] errorCodeArguments
  • Constructor Details

    • InvalidActionException

      public InvalidActionException()
      Creates a new exception with a default ErrorCode.INVALID_ACTION code.
    • InvalidActionException

      public InvalidActionException(ErrorCode errorCode)
      Creates a new exception with the passed error code, which indicates the reason of the exception.
      Parameters:
      errorCode - The associated error code.
    • InvalidActionException

      public InvalidActionException(ErrorCode errorCode, String[] errorCodeArguments)
      Creates a new exception with the passed error code, which indicates the reason of the exception. The error code receives the passed parameters.
      Parameters:
      errorCode - The associated error code.
      errorCodeArguments - The error code arguments.
  • Method Details

    • getErrorCodeArguments

      public Object[] getErrorCodeArguments()
      Description copied from class: AppianException
      Gets the arguments that must be used to render this exception's message representation. Subclasses should override this method to return specific arguments. The default implementation returns a length 1 array containing the message as returned by the parent class of AppianException. This method is only called when AppianException.getErrorCodeArguments(Locale) hasn't been overwritten.
      Overrides:
      getErrorCodeArguments in class AppianException
      Returns:
      the arguments of the error code tied to this exception
      See Also:
    • getErrorCode

      public ErrorCode getErrorCode()
      Description copied from class: AppianException
      Gets the error code associated with this exception. Subclasses should override this method to return specific error codes. The default implementation returns APNX-1-0000-000 (ErrorCode.GENERIC_ERROR).
      Overrides:
      getErrorCode in class AppianException
      See Also: