Class ModuleParsingException

All Implemented Interfaces:
Serializable

public class ModuleParsingException extends ModuleException
Exception thrown when there's an error parsing an eLearning module.

This exception is typically thrown by ModuleParser implementations when they encounter errors while parsing module content. It is a higher-level exception that may wrap more specific exceptions like ManifestParseException.

Common scenarios that might cause this exception include:

  • Missing or invalid manifest files
  • Missing required metadata elements
  • Invalid module structure
  • I/O errors when accessing module files

Applications should catch this exception and provide appropriate feedback to users about the invalid or problematic module.

This exception extends ModuleException and inherits its ability to store additional context information as metadata.

See Also:
  • Constructor Details

    • ModuleParsingException

      public ModuleParsingException(String message)
      Constructs a new ModuleParsingException with the specified detail message.
      Parameters:
      message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method)
    • ModuleParsingException

      public ModuleParsingException(String message, Throwable cause)
      Constructs a new ModuleParsingException with the specified detail message and cause.

      Note that the detail message associated with cause is not automatically incorporated into this exception's detail message.

      Parameters:
      message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method)
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). A null value is permitted, and indicates that the cause is nonexistent or unknown.
    • ModuleParsingException

      public ModuleParsingException(String message, Throwable cause, Map<String,Object> metadata)
      Constructs a new ModuleParsingException with the specified detail message, cause, and metadata.
      Parameters:
      message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method)
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). A null value is permitted, and indicates that the cause is nonexistent or unknown.
      metadata - a map of additional context information about the exception