MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / IoError

Class IoError

sdk-python/src/graphlite_sdk/error.py:66–76  ·  view source on GitHub ↗

I/O errors

Source from the content-addressed store, hash-verified

64 super().__init__(f"Connection error: {message}")
65
66class IoError(GraphLiteError):
67 """I/O errors"""
68 def __init__(self, message: str):
69 super().__init__(f"I/O error: {message}")
70
71 @classmethod
72 def from_io_error(cls, error: OSError) -> "IoError":
73 """Create IoError from Python OSError (IOError in Python 3)"""
74 filename = getattr(error, 'filename', None) or ''
75 strerror = getattr(error, 'strerror', None) or str(error)
76 return cls(f"{strerror}: {filename}" if filename else strerror)
77
78
79# ============================================================================

Callers 5

fromMethod · 0.85
ioMethod · 0.85
serializationMethod · 0.85
deserializationMethod · 0.85
fromMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected