Add files via upload
initial commit
This commit is contained in:
parent
8d3d5ff628
commit
b33bb415dd
24 changed files with 4840 additions and 0 deletions
25
semantic_llm_cache/exceptions.py
Normal file
25
semantic_llm_cache/exceptions.py
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
"""Custom exceptions for prompt-cache."""
|
||||
|
||||
|
||||
class PromptCacheError(Exception):
|
||||
"""Base exception for prompt-cache errors."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class CacheBackendError(PromptCacheError):
|
||||
"""Exception raised when backend operations fail."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class CacheSerializationError(PromptCacheError):
|
||||
"""Exception raised when serialization/deserialization fails."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class CacheNotFoundError(PromptCacheError):
|
||||
"""Exception raised when cache entry is not found."""
|
||||
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue