mirror of
https://github.com/VectifyAI/PageIndex.git
synced 2026-05-16 18:25:14 +02:00
feat: add PageIndex SDK with local/cloud dual-mode support (#207)
This commit is contained in:
parent
f2dcffc0b7
commit
c7fe93bb56
45 changed files with 4225 additions and 274 deletions
28
pageindex/errors.py
Normal file
28
pageindex/errors.py
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue