public class CommandException extends DistributedException
Modifier and Type | Field and Description |
---|---|
protected java.lang.Throwable |
throwable |
Constructor and Description |
---|
CommandException()
Constructor without parameters.
|
CommandException(java.lang.String message)
Constructor with a message parameter.
|
CommandException(java.lang.String resourceBundleName,
java.lang.String resourceKey,
java.lang.Object[] formatArguments,
java.lang.String defaultText)
Constructor with information for localizing messages.
|
CommandException(java.lang.String resourceBundleName,
java.lang.String resourceKey,
java.lang.Object[] formatArguments,
java.lang.String defaultText,
java.lang.Throwable exception)
Constructor with information for localizing messages and an exception
to chain.
|
CommandException(java.lang.String message,
java.lang.Throwable throwable)
Constructor with a message and throwable exception, which is saved.
|
CommandException(java.lang.Throwable throwable)
Constructor with a throwable exception, which is saved.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getException()
Returns a throwable exception.
|
getException, getExceptionInfo, getMessage, getOriginalException, getPreviousException, printStackTrace, printStackTrace, printStackTrace, printSuperStackTrace, printSuperStackTrace, setDefaultMessage, setLocalizationInfo
public CommandException()
public CommandException(java.lang.String message)
message
- A string describing the exception.public CommandException(java.lang.String resourceBundleName, java.lang.String resourceKey, java.lang.Object[] formatArguments, java.lang.String defaultText)
resourceBundleName
- The name of resource bundle
that will be used to retrieve the message
for getMessage() method.resourceKey
- The key in the resource bundle that
will be used to select the specific message that is
retrieved for the getMessage() method.formatArguments
- The arguments to be passed to
the MessageFormat class to act as replacement variables
in the message that is retrieved from the resource bundle.
Valid types are those supported by MessageFormat.defaultText
- The default message that will be
used by the getMessage() method if the resource bundle or the
key cannot be found.public CommandException(java.lang.String resourceBundleName, java.lang.String resourceKey, java.lang.Object[] formatArguments, java.lang.String defaultText, java.lang.Throwable exception)
resourceBundleName
- The name of resource bundle
that will be used to retrieve the message
for getMessage() method.resourceKey
- The key in the resource bundle that
will be used to select the specific message
retrieved for the getMessage() method.formatArguments
- The arguments to be passed to
the MessageFormat class to act as replacement variables
in the message that is retrieved from the resource bundle.
Valid types are those supported by MessageFormat.defaultText
- The default message that will be
used by the getMessage() method if the resource bundle or the
key cannot be found.exception
- The exception that is to be chained.public CommandException(java.lang.Throwable throwable)
throwable
- The exception to save.public CommandException(java.lang.String message, java.lang.Throwable throwable)
throwable
- The exception to save.