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 ofOperationFailedException
and is intended for use in cases where the semantics ofOperationFailedException
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OperationFailedRuntimeException(String message)
Constructs aOperationFailedException
with the given message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.dmr.ModelNode
getFailureDescription()
Get the detyped failure description.String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
OperationFailedRuntimeException
public OperationFailedRuntimeException(String message)
Constructs aOperationFailedException
with 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 Detail
-
getFailureDescription
public org.jboss.dmr.ModelNode getFailureDescription()
Get the detyped failure description.- Specified by:
getFailureDescription
in interfaceOperationClientException
- Returns:
- the description. Will not be
null
-
-