Package org.jboss.as.controller
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:
-
A flaw in a user provided expression string that results in a
ExpressionResolverExtensionnot being able to resolve the expression. - 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.dmr.ModelNodeGet the detyped failure description.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ExpressionResolutionUserException
-
ExpressionResolutionUserException
-
-
Method Details
-
getFailureDescription
public org.jboss.dmr.ModelNode getFailureDescription()Description copied from interface:OperationClientExceptionGet the detyped failure description.- Specified by:
getFailureDescriptionin interfaceOperationClientException- Returns:
- the description. Will not be
null
-