public class OperationFailedException extends Exception implements OperationClientException
Constructor and Description |
---|
OperationFailedException(org.jboss.dmr.ModelNode description)
Deprecated.
provide a message and use
OperationFailedException(String, org.jboss.dmr.ModelNode) or
if the description model node is ModelType.STRING , just use OperationFailedException(String) |
OperationFailedException(String message)
Constructs a
OperationFailedException with the given message. |
OperationFailedException(String msg,
org.jboss.dmr.ModelNode description)
Constructs a
OperationFailedException with the specified detail message. |
OperationFailedException(String message,
Throwable cause)
Constructs a
OperationFailedException with the specified cause and message. |
OperationFailedException(String msg,
Throwable cause,
org.jboss.dmr.ModelNode description)
Constructs a
OperationFailedException with the specified detail message and cause. |
OperationFailedException(Throwable cause)
Constructs a
OperationFailedException with the specified cause. |
OperationFailedException(Throwable cause,
org.jboss.dmr.ModelNode description)
Constructs a
OperationFailedException with the specified cause. |
Modifier and Type | Method and Description |
---|---|
org.jboss.dmr.ModelNode |
getFailureDescription()
Get the detyped failure description.
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public OperationFailedException(String message)
OperationFailedException
with the given message.
The message is also used as the failure description
.
The cause is not initialized, and may
subsequently be initialized by a call to initCause
.message
- the description of the failure. Cannot be null
public OperationFailedException(String message, Throwable cause)
OperationFailedException
with the specified cause and message.
The message is also used as the failure description
.message
- the description of the failure. Cannot be null
cause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method)@Deprecated public OperationFailedException(org.jboss.dmr.ModelNode description)
OperationFailedException(String, org.jboss.dmr.ModelNode)
or
if the description
model node is ModelType.STRING
, just use OperationFailedException(String)
OperationFailedException
with no detail message. The cause is not initialized, and may
subsequently be initialized by a call to initCause
.description
- the description of the failure. Cannot be null
public OperationFailedException(String msg, org.jboss.dmr.ModelNode description)
OperationFailedException
with the specified detail message. The cause is not initialized,
and may subsequently be initialized by a call to initCause
.msg
- the detail messagedescription
- the description of the failure. Cannot be null
public OperationFailedException(Throwable cause)
OperationFailedException
with the specified cause.
The cause's message
is also used as the
failure description
.cause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). Cannot be null
public OperationFailedException(Throwable cause, org.jboss.dmr.ModelNode description)
OperationFailedException
with the specified cause. The detail message is set to:
(cause == null ? null : cause.toString())(which typically contains the class and detail message of
cause
).cause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method)description
- the description of the failure. Cannot be null
public OperationFailedException(String msg, Throwable cause, org.jboss.dmr.ModelNode description)
OperationFailedException
with the specified detail message and cause.msg
- the detail messagecause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method)description
- the description of the failure. Cannot be null
public org.jboss.dmr.ModelNode getFailureDescription()
getFailureDescription
in interface OperationClientException
null
Copyright © 2023 JBoss by Red Hat. All rights reserved.