Class ModuleParsingException

All Implemented Interfaces:
Serializable

public final 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.

See Also:
  • Constructor Details

    • ModuleParsingException

      public ModuleParsingException(String contextMessage, ValidationResult result)
      Constructs a new ModuleParsingException with validation result. This constructor should only be called from ValidationResult.toException().
      Parameters:
      contextMessage - Context describing what was being parsed
      result - ValidationResult containing all validation issues
  • Method Details

    • getValidationResult

      public ValidationResult getValidationResult()
      Gets the validation result containing all issues found during parsing.
      Returns:
      ValidationResult with errors and warnings