Package org.glassfish.api.admin
Class CommandException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.glassfish.api.admin.CommandException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthenticationException
,CommandValidationException
,InvalidCommandException
,ReExecuted
,SSHCommandExecutionException
public class CommandException extends Exception
Class for an exception that occurred while executing an asadmin command- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommandException()
Creates newCommandException
without detail message.CommandException(String msg)
Constructs aCommandException
with the specified detail message.CommandException(String msg, Throwable cause)
Constructs a newCommandException
exception with the specified detailed message and cause.CommandException(Throwable cause)
Constructs a newCommandException
exception with the specified cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CommandException
public CommandException()
Creates newCommandException
without detail message.
-
CommandException
public CommandException(String msg)
Constructs aCommandException
with the specified detail message.- Parameters:
msg
- the detail message.
-
CommandException
public CommandException(Throwable cause)
Constructs a newCommandException
exception with the specified cause.
-
-