19 lines
499 B
Python
Raw Normal View History

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)