Package org.jboss.modules
Class ModuleLoadError
java.lang.Object
java.lang.Throwable
java.lang.Error
org.jboss.modules.ModuleLoadError
- All Implemented Interfaces:
Serializable
Module load error, thrown when there is some problem loading a module during runtime.
- Author:
- David M. Lloyd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aModuleLoadException
with no detail message.ModuleLoadError
(String msg) Constructs aModuleLoadException
with the specified detail message.ModuleLoadError
(String msg, Throwable cause) Constructs aModuleLoadException
with the specified detail message and cause.ModuleLoadError
(Throwable cause) Constructs aModuleLoadException
with the specified cause. -
Method Summary
Modifier and TypeMethodDescriptionConvert to a checked exception type.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ModuleLoadError
public ModuleLoadError()Constructs aModuleLoadException
with no detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause
. -
ModuleLoadError
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
-
ModuleLoadError
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)
-
ModuleLoadError
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
-
toException
Convert to a checked exception type.- Returns:
- the checked exception
-