Class DuplicateExpressionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.appiancorp.suiteapi.common.exceptions.AppianException
com.appiancorp.suiteapi.common.exceptions.DuplicateExpressionException
All Implemented Interfaces:
Serializable

public class DuplicateExpressionException extends AppianException
This exception may be thrown while trying to create or modify a Rule with a name that is already registered as an expression function.
See Also:
  • Field Details

    • errorCode

      protected ErrorCode errorCode
    • errorCodeArguments

      protected Object[] errorCodeArguments
  • Constructor Details

    • DuplicateExpressionException

      public DuplicateExpressionException(ErrorCode errorCode)
    • DuplicateExpressionException

      public DuplicateExpressionException(ErrorCode errorCode, Object... errorCodeArguments)
  • Method Details

    • 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:
    • setErrorCodeArguments

      public void setErrorCodeArguments(Object... errorCodeArguments)
    • getErrorCodeArguments

      protected 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: