Class ModuleDetectionException

All Implemented Interfaces:
Serializable

public class ModuleDetectionException extends ModuleException
Exception thrown when a module type cannot be detected or when there's an error during the module detection process.

This exception is typically thrown by ModuleTypeDetector implementations when they're unable to determine the type of an eLearning module (SCORM 1.2, SCORM 2004, AICC, cmi5) based on the module's structure and manifest files.

Common scenarios that might cause this exception include:

  • Missing or invalid manifest files
  • Corrupt module package
  • Unsupported module type
  • I/O errors when accessing module files

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

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

See Also:
  • Constructor Details

    • ModuleDetectionException

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

      public ModuleDetectionException(String message, Throwable cause)
      Constructs a new ModuleDetectionException 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.
    • ModuleDetectionException

      public ModuleDetectionException(String message, Throwable cause, Map<String,Object> metadata)
      Constructs a new ModuleDetectionException 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