Class ModuleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
dev.jcputney.elearning.parser.exception.ModuleException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FileAccessException,ManifestParseException,ModuleDetectionException,ModuleParsingException
public sealed class ModuleException
extends Exception
permits FileAccessException, ManifestParseException, ModuleDetectionException, ModuleParsingException
Base exception class for all module-related exceptions in the elearning-module-parser library.
This class provides a foundation for a more extensible error handling framework by:
- Establishing a common base class for all module-related exceptions
- Providing consistent constructors and methods across all exception types
All specific exception types in the library should extend this class or one of its subclasses.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionModuleException(String message) Constructs a new ModuleException with the specified detail message.ModuleException(String message, Throwable cause) Constructs a new ModuleException with the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ModuleException
Constructs a new ModuleException with the specified detail message.- Parameters:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method)
-
ModuleException
Constructs a new ModuleException with the specified detail message and cause.- Parameters:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method)cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). A null value is permitted and indicates that the cause is nonexistent or unknown.
-