mirror of
https://github.com/VectifyAI/PageIndex.git
synced 2026-04-27 09:06:21 +02:00
28 lines
531 B
Python
28 lines
531 B
Python
class PageIndexError(Exception):
|
|
"""Base exception for all PageIndex SDK errors."""
|
|
pass
|
|
|
|
|
|
class CollectionNotFoundError(PageIndexError):
|
|
"""Collection does not exist."""
|
|
pass
|
|
|
|
|
|
class DocumentNotFoundError(PageIndexError):
|
|
"""Document ID not found."""
|
|
pass
|
|
|
|
|
|
class IndexingError(PageIndexError):
|
|
"""Indexing pipeline failure."""
|
|
pass
|
|
|
|
|
|
class CloudAPIError(PageIndexError):
|
|
"""Cloud API returned error."""
|
|
pass
|
|
|
|
|
|
class FileTypeError(PageIndexError):
|
|
"""Unsupported file type."""
|
|
pass
|