Package org.glassfish.embeddable.web
Class ConfigException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.glassfish.embeddable.web.ConfigException
-
- All Implemented Interfaces:
Serializable
public class ConfigException extends Exception
Exception thrown when a web container component fails to be (re)configured, or if it fails to be registered with another web container component because its id (in the case of VirtualServer and WebListener) or context root (in the case of Context) is already taken.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConfigException()
Constructs a ConfigException with no detail message.ConfigException(String message)
Constructs a ConfigException with the specified detail message.ConfigException(String message, Throwable cause)
Constructs a ConfigException with the specified detail message and cause.ConfigException(Throwable cause)
Constructs a ConfigException 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
-
ConfigException
protected ConfigException()
Constructs a ConfigException with no detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause
.
-
ConfigException
public ConfigException(String message)
Constructs a ConfigException with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause
.- Parameters:
message
- the detail message
-
ConfigException
public ConfigException(String message, Throwable cause)
Constructs a ConfigException with the specified detail message and cause.- Parameters:
message
- the detail messagecause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method)
-
ConfigException
public ConfigException(Throwable cause)
Constructs a ConfigException 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 theThrowable.getCause()
method)
-
-