VectoriaError and include machine-readable code values.
Error Types
| Error | Code | Description |
|---|---|---|
VectoriaNotInitializedError | NOT_INITIALIZED | Call initialize() first |
DocumentValidationError | DOCUMENT_VALIDATION_ERROR | Invalid document data |
DocumentNotFoundError | DOCUMENT_NOT_FOUND | Document ID doesn’t exist |
DocumentExistsError | DOCUMENT_EXISTS | Document ID already exists |
DuplicateDocumentError | DUPLICATE_DOCUMENT | Duplicate in batch |
QueryValidationError | QUERY_VALIDATION_ERROR | Invalid search query |
EmbeddingError | EMBEDDING_ERROR | Model embedding failed |
StorageError | STORAGE_ERROR | Storage operation failed |
ConfigurationError | CONFIGURATION_ERROR | Invalid config |
Importing Errors
VectoriaError
Base class for all VectoriaDB errors.VectoriaNotInitializedError
Thrown when operations are attempted before initialization.Example
DocumentValidationError
Thrown when document validation fails.DocumentNotFoundError
Thrown when a document ID doesn’t exist.DocumentExistsError
Thrown when adding a document with an existing ID.DuplicateDocumentError
Thrown when duplicates are found in batch operations.QueryValidationError
Thrown when search parameters are invalid.EmbeddingError
Thrown when embedding generation fails.StorageError
Thrown when storage operations fail.ConfigurationError
Thrown when configuration is invalid.Error Handling Pattern
Related
Common Errors
Error solutions
FAQ
Frequently asked questions