public class CommandException extends GlassFishIdeException
All exceptions are logging themselves on WARNING level when created.
Modifier and Type | Field and Description |
---|---|
(package private) static String |
HTTP_RESP_IO_EXCEPTION
Exception message for IOException when reading HTTP response.
|
(package private) static String |
HTTP_RESP_UNS_ENC_EXCEPTION
Exception message for UnsupportedEncodingException when processing
Manifest retrieved from server. |
(package private) static String |
ILLEGAL_COMAND_INSTANCE
Exception message for illegal
Command instance provided. |
(package private) static String |
ILLEGAL_NULL_VALUE
Exception message for illegal
null value provided. |
static String |
INVALID_BOOLEAN_CONSTANT
Exception message for invalid constant representing
boolean
value. |
static String |
MANIFEST_INVALID_COMPONENT_ITEM
Exception message for invalid server component (application) item.
|
(package private) static String |
RUNNER_HTTP_HEADERS
Exception message for exceptions when preparing headers for
HTTP connection.
|
(package private) static String |
RUNNER_HTTP_URL
Exception message for exceptions when building command URL.
|
(package private) static String |
RUNNER_INIT
Exception message for exceptions when initializing
Runner
object. |
(package private) static String |
UNKNOWN_ADMIN_INTERFACE
Exception message for unknown GlassFish administration interface
type.
|
(package private) static String |
UNKNOWN_VERSION
Exception message for unknown GlassFish version.
|
(package private) static String |
UNSUPPORTED_OPERATION
Exception message for unsupported operation.
|
(package private) static String |
UNSUPPORTED_VERSION
Exception message for unsupported GlassFish version.
|
Constructor and Description |
---|
CommandException()
Constructs an instance of
CommandException without
detail message. |
CommandException(String msg)
Constructs an instance of
CommandException with the
specified detail message. |
CommandException(String msg,
Object... arguments)
Constructs an instance of
CommandException with the
specified detail message and arguments. |
CommandException(String msg,
Throwable cause)
Constructs an instance of
CommandException with the
specified detail message and cause. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
static final String UNSUPPORTED_VERSION
static final String UNKNOWN_ADMIN_INTERFACE
static final String UNKNOWN_VERSION
static final String UNSUPPORTED_OPERATION
static final String HTTP_RESP_IO_EXCEPTION
static final String RUNNER_INIT
Runner
object.static final String RUNNER_HTTP_HEADERS
static final String RUNNER_HTTP_URL
static final String ILLEGAL_COMAND_INSTANCE
Command
instance provided.static final String ILLEGAL_NULL_VALUE
null
value provided.static final String HTTP_RESP_UNS_ENC_EXCEPTION
Manifest
retrieved from server.public static final String MANIFEST_INVALID_COMPONENT_ITEM
public static final String INVALID_BOOLEAN_CONSTANT
boolean
value.public CommandException()
CommandException
without
detail message.public CommandException(String msg)
CommandException
with the
specified detail message.
msg
- The detail message.public CommandException(String msg, Object... arguments)
CommandException
with the
specified detail message and arguments.
Uses MessageFormat
to format message.
msg
- The detail message.arguments
- Arguments to be inserted into message.public CommandException(String msg, Throwable cause)
CommandException
with the
specified detail message and cause. Exception is logged on WARN level.
Note that the detail message associated with cause
is not
automatically incorporated in this runtime exception's detail message.
msg
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method).cause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A null
value is
permitted, and indicates that the cause is nonexistent or
unknown.)Copyright © 2013. All Rights Reserved.