Package org.jboss.modules
Class ModuleLoadException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.jboss.modules.ModuleLoadException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ModuleNotFoundException
public class ModuleLoadException extends java.lang.ExceptionModule load exception, thrown when there is some problem loading a module.- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ModuleLoadException()Constructs aModuleLoadExceptionwith no detail message.ModuleLoadException(java.lang.String msg)Constructs aModuleLoadExceptionwith the specified detail message.ModuleLoadException(java.lang.String msg, java.lang.Throwable cause)Constructs aModuleLoadExceptionwith the specified detail message and cause.ModuleLoadException(java.lang.Throwable cause)Constructs aModuleLoadExceptionwith the specified cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModuleLoadErrortoError()Convert to an unchecked error type.
-
-
-
Constructor Detail
-
ModuleLoadException
public ModuleLoadException()
Constructs aModuleLoadExceptionwith no detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause.
-
ModuleLoadException
public ModuleLoadException(java.lang.String msg)
Constructs aModuleLoadExceptionwith the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause.- Parameters:
msg- the detail message
-
ModuleLoadException
public ModuleLoadException(java.lang.Throwable cause)
Constructs aModuleLoadExceptionwith 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
public ModuleLoadException(java.lang.String msg, java.lang.Throwable cause)Constructs aModuleLoadExceptionwith the specified detail message and cause.- Parameters:
msg- the detail messagecause- the cause (which is saved for later retrieval by theThrowable.getCause()method)
-
-
Method Detail
-
toError
public ModuleLoadError toError()
Convert to an unchecked error type.- Returns:
- the unchecked error
-
-