Class OperationFailedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jboss.as.controller.OperationFailedException
All Implemented Interfaces:
Serializable, OperationClientException

public class OperationFailedException extends Exception implements 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 Details

    • OperationFailedException

      public OperationFailedException(String message)
      Constructs a 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.
      Parameters:
      message - the description of the failure. Cannot be null
    • OperationFailedException

      public OperationFailedException(String message, Throwable cause)
      Constructs a OperationFailedException with the specified cause and message. The message is also used as the failure description.
      Parameters:
      message - the description of the failure. Cannot be null
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method)
    • OperationFailedException

      public OperationFailedException(String msg, org.jboss.dmr.ModelNode description)
      Constructs a OperationFailedException with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to initCause.
      Parameters:
      msg - the detail message
      description - the description of the failure. Cannot be null
    • OperationFailedException

      public OperationFailedException(Throwable cause)
      Constructs a OperationFailedException with the specified cause. The cause's message is also used as the failure description.
      Parameters:
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). Cannot be null
    • OperationFailedException

      public OperationFailedException(Throwable cause, org.jboss.dmr.ModelNode description)
      Constructs a 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).
      Parameters:
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method)
      description - the description of the failure. Cannot be null
    • OperationFailedException

      public OperationFailedException(String msg, Throwable cause, org.jboss.dmr.ModelNode description)
      Constructs a OperationFailedException with the specified detail message and cause.
      Parameters:
      msg - the detail message
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method)
      description - the description of the failure. Cannot be null
  • Method Details