Package org.jboss.as.controller._private
Class OperationFailedRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jboss.as.controller._private.OperationFailedRuntimeException
- All Implemented Interfaces:
Serializable,OperationClientException
- Direct Known Subclasses:
UnauthorizedException
public class OperationFailedRuntimeException
extends RuntimeException
implements OperationClientException
Runtime exception indicating an operation has failed due to a client mistake (e.g. an operation with
invalid parameters was invoked.) Should not be used to report server failures.
This is a RuntimeException variant of OperationFailedException and is intended
for use in cases where the semantics of OperationFailedException are desired but an
API does not allow a checked exception to be thrown. See https://issues.jboss.org/browse/AS7-2905 .
- Author:
- Brian Stansberry (c) 2011 Red Hat Inc.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOperationFailedRuntimeException(String message) Constructs aOperationFailedExceptionwith the given message. -
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.dmr.ModelNodeGet the detyped failure description.toString()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
OperationFailedRuntimeException
Constructs aOperationFailedExceptionwith the given message. The message is also used as thefailure description. The cause is not initialized, and may subsequently be initialized by a call toinitCause.- Parameters:
message- the description of the failure. Cannot benull
-
-
Method Details
-
getFailureDescription
public org.jboss.dmr.ModelNode getFailureDescription()Get the detyped failure description.- Specified by:
getFailureDescriptionin interfaceOperationClientException- Returns:
- the description. Will not be
null
-
toString
-