18 lines
499 B
Python
18 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)
|