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
ExpressionResolverExtension
not 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 anOperationStepHandler
, 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 inExpressionResolverExtension.resolveExpression(String, OperationContext)
execution that are not due to user inputs.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExpressionResolutionUserException(String msg)
ExpressionResolutionUserException(String msg, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.dmr.ModelNode
getFailureDescription()
Get the detyped failure description.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getFailureDescription
public org.jboss.dmr.ModelNode getFailureDescription()
Description copied from interface:OperationClientException
Get the detyped failure description.- Specified by:
getFailureDescription
in interfaceOperationClientException
- Returns:
- the description. Will not be
null
-
-