public class OperationFailedRuntimeException extends RuntimeException implements OperationClientException
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 .
Constructor and Description |
---|
OperationFailedRuntimeException(String message)
Constructs a
OperationFailedException with the given message. |
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 OperationFailedRuntimeException(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 org.jboss.dmr.ModelNode getFailureDescription()
getFailureDescription
in interface OperationClientException
null
Copyright © 2023 JBoss by Red Hat. All rights reserved.