Skip to content

Exceptions Module

Custom exceptions for textxtract package.

Classes:

Name Description
ExtractionError

Raised when a general extraction error occurs.

ExtractionTimeoutError

Raised when extraction exceeds the allowed timeout.

FileTypeNotSupportedError

Raised when the file type is not supported.

InvalidFileError

Raised when the file is invalid or unsupported.

Classes

ExtractionError

Bases: Exception

Raised when a general extraction error occurs.

Source code in textxtract/core/exceptions.py
class ExtractionError(Exception):
    """Raised when a general extraction error occurs."""

ExtractionTimeoutError

Bases: ExtractionError

Raised when extraction exceeds the allowed timeout.

Source code in textxtract/core/exceptions.py
class ExtractionTimeoutError(ExtractionError):
    """Raised when extraction exceeds the allowed timeout."""

FileTypeNotSupportedError

Bases: ExtractionError

Raised when the file type is not supported.

Source code in textxtract/core/exceptions.py
class FileTypeNotSupportedError(ExtractionError):
    """Raised when the file type is not supported."""

InvalidFileError

Bases: ExtractionError

Raised when the file is invalid or unsupported.

Source code in textxtract/core/exceptions.py
class InvalidFileError(ExtractionError):
    """Raised when the file is invalid or unsupported."""