Package org.jboss.modules
Class ModuleLoadException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jboss.modules.ModuleLoadException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ModuleNotFoundException
Module load exception, thrown when there is some problem loading a module.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aModuleLoadException
with no detail message.Constructs aModuleLoadException
with the specified detail message.ModuleLoadException
(String msg, Throwable cause) Constructs aModuleLoadException
with the specified detail message and cause.ModuleLoadException
(Throwable cause) Constructs aModuleLoadException
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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ModuleLoadException
public ModuleLoadException()Constructs aModuleLoadException
with no detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause
. -
ModuleLoadException
Constructs aModuleLoadException
with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause
.- Parameters:
msg
- the detail message
-
ModuleLoadException
Constructs aModuleLoadException
with the specified cause. The detail message is set to:(cause == null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).- Parameters:
cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method)
-
ModuleLoadException
Constructs aModuleLoadException
with the specified detail message and cause.- Parameters:
msg
- the detail messagecause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method)
-
-
Method Details
-
toError
Convert to an unchecked error type.- Returns:
- the unchecked error
-