flow_segmenter.exceptions

Custom exceptions for the flow_segmenter package.

Exceptions

EmptyCollectionError

Raised when no pages are found in the collection.

InvalidImageError

Raised when an image cannot be loaded or is invalid.

InvalidXMLError

Raised when XML structure is invalid or cannot be parsed.

ModelLoadError

Raised when a model cannot be loaded.

PageNotFoundError

Raised when a <Page> element is not found in XML.

SegmentationError

Base exception for segmentation-related errors.