Class ExpressionResolver.ExpressionResolutionUserException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jboss.as.controller.ExpressionResolver.ExpressionResolutionUserException
All Implemented Interfaces:
Serializable, OperationClientException
Enclosing interface:
ExpressionResolver

public static class ExpressionResolver.ExpressionResolutionUserException extends RuntimeException implements OperationClientException
Runtime exception used to indicate some user-driven problem that prevented expression resolution, for example:
  1. A flaw in a user provided expression string that results in a ExpressionResolverExtension not being able to resolve the expression.
  2. A server configuration flaw that prevents initialization of runtime services used by the resolver extension.

This class implements OperationClientException, so if it is thrown during execution of an OperationStepHandler, the management kernel will properly handle the exception as a user mistake, not a server fault.

Note: this should only be thrown if the ExpressionResolverExtension is sure the expression string is meant to be resolved by itself. Do not throw this in situations where this is unclear.

Note: this should only be thrown to report problems resulting from user errors. Use ExpressionResolver.ExpressionResolutionServerException to report faults in ExpressionResolverExtension.resolveExpression(String, OperationContext) execution that are not due to user inputs.

See Also:
  • Constructor Details

    • ExpressionResolutionUserException

      public ExpressionResolutionUserException(String msg)
    • ExpressionResolutionUserException

      public ExpressionResolutionUserException(String msg, Throwable cause)
  • Method Details