mirror of
https://github.com/getzep/graphiti.git
synced 2025-07-03 07:05:16 +00:00
19 lines
499 B
Python
19 lines
499 B
Python
![]() |
class GraphitiError(Exception):
|
||
|
"""Base exception class for Graphiti Core."""
|
||
|
|
||
|
|
||
|
class EdgeNotFoundError(GraphitiError):
|
||
|
"""Raised when an edge is not found."""
|
||
|
|
||
|
def __init__(self, uuid: str):
|
||
|
self.message = f'edge {uuid} not found'
|
||
|
super().__init__(self.message)
|
||
|
|
||
|
|
||
|
class NodeNotFoundError(GraphitiError):
|
||
|
"""Raised when a node is not found."""
|
||
|
|
||
|
def __init__(self, uuid: str):
|
||
|
self.message = f'node {uuid} not found'
|
||
|
super().__init__(self.message)
|