public class ModuleLoadException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
ModuleLoadException()
Constructs a
ModuleLoadException with no detail message. |
ModuleLoadException(java.lang.String msg)
Constructs a
ModuleLoadException with the specified detail message. |
ModuleLoadException(java.lang.String msg,
java.lang.Throwable cause)
Constructs a
ModuleLoadException with the specified detail message and cause. |
ModuleLoadException(java.lang.Throwable cause)
Constructs a
ModuleLoadException with the specified cause. |
Modifier and Type | Method and Description |
---|---|
ModuleLoadError |
toError()
Convert to an unchecked error type.
|
private static final long serialVersionUID
public ModuleLoadException()
ModuleLoadException
with no detail message. The cause is not initialized, and may subsequently
be initialized by a call to initCause
.public ModuleLoadException(java.lang.String msg)
ModuleLoadException
with the specified detail message. The cause is not initialized, and may
subsequently be initialized by a call to initCause
.msg
- the detail messagepublic ModuleLoadException(java.lang.Throwable cause)
ModuleLoadException
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
).cause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method)public ModuleLoadException(java.lang.String msg, java.lang.Throwable cause)
ModuleLoadException
with the specified detail message and cause.msg
- the detail messagecause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method)public ModuleLoadError toError()