public class GlassFishIdeException extends RuntimeException
Base exception for GlassFish IDE SDK Exception contains all common code. All exceptions are logging themselves on WARNING level when created.
Modifier and Type | Field and Description |
---|---|
private static Logger |
LOGGER
Logger instance for this class.
|
Constructor and Description |
---|
GlassFishIdeException()
Constructs an instance of
GlassFishIdeException without
detail message. |
GlassFishIdeException(String msg)
Constructs an instance of
GlassFishIdeException with the
specified detail message. |
GlassFishIdeException(String msg,
Object... arguments)
Constructs an instance of
GlassFishIdeException with the
specified detail message and arguments. |
GlassFishIdeException(String msg,
Throwable cause)
Constructs an instance of
GlassFishIdeException with the
specified detail message and cause. |
Modifier and Type | Method and Description |
---|---|
private static String |
formatMessage(String msg,
Object... arguments)
Create exception message from message pattern and arguments using
MessageFormat . |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private static final Logger LOGGER
public GlassFishIdeException()
GlassFishIdeException
without
detail message.public GlassFishIdeException(String msg)
GlassFishIdeException
with the
specified detail message.
msg
- The detail message.public GlassFishIdeException(String msg, Object... arguments)
GlassFishIdeException
with the
specified detail message and arguments.
Uses MessageFormat
to format message.
msg
- The detail message.arguments
- Arguments to be inserted into message.public GlassFishIdeException(String msg, Throwable cause)
GlassFishIdeException
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 int his 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.)private static String formatMessage(String msg, Object... arguments)
MessageFormat
.
msg
- The detail message pattern.arguments
- Arguments to be inserted into message pattern.Copyright © 2013. All Rights Reserved.