Package org.jboss.as.controller
Class OperationFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jboss.as.controller.OperationFailedException
- All Implemented Interfaces:
Serializable,OperationClientException
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.
- Author:
- David M. Lloyd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOperationFailedException(String message) Constructs aOperationFailedExceptionwith the given message.OperationFailedException(String message, Throwable cause) Constructs aOperationFailedExceptionwith the specified cause and message.OperationFailedException(String msg, Throwable cause, org.jboss.dmr.ModelNode description) Constructs aOperationFailedExceptionwith the specified detail message and cause.OperationFailedException(String msg, org.jboss.dmr.ModelNode description) Constructs aOperationFailedExceptionwith the specified detail message.Constructs aOperationFailedExceptionwith the specified cause.OperationFailedException(Throwable cause, org.jboss.dmr.ModelNode description) Constructs aOperationFailedExceptionwith the specified cause. -
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
-
OperationFailedException
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
-
OperationFailedException
Constructs aOperationFailedExceptionwith the specified cause and message. The message is also used as thefailure description.- Parameters:
message- the description of the failure. Cannot benullcause- the cause (which is saved for later retrieval by theThrowable.getCause()method)
-
OperationFailedException
Constructs aOperationFailedExceptionwith the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause.- Parameters:
msg- the detail messagedescription- the description of the failure. Cannot benull
-
OperationFailedException
Constructs aOperationFailedExceptionwith the specified cause. Thecause's messageis also used as thefailure description.- Parameters:
cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). Cannot benull
-
OperationFailedException
Constructs aOperationFailedExceptionwith the specified cause. The detail message is set to:(cause == null ? null : cause.toString())
(which typically contains the class and detail message ofcause).- Parameters:
cause- the cause (which is saved for later retrieval by theThrowable.getCause()method)description- the description of the failure. Cannot benull
-
OperationFailedException
Constructs aOperationFailedExceptionwith the specified detail message and cause.- Parameters:
msg- the detail messagecause- the cause (which is saved for later retrieval by theThrowable.getCause()method)description- 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
-