Serialization/deserialization errors
| 34 | super().__init__(f"Transaction error: {message}") |
| 35 | |
| 36 | class SerializationError(GraphLiteError): |
| 37 | """Serialization/deserialization errors""" |
| 38 | def __init__(self, message: str): |
| 39 | super().__init__(f"Serialization error: {message}") |
| 40 | |
| 41 | @classmethod |
| 42 | def from_json_error(cls, error: json.JSONDecodeError) -> "SerializationError": |
| 43 | """Create SerializationError from json.JSONDecodeError""" |
| 44 | return cls(f"JSON error: {error.msg} at line {error.lineno}, column {error.colno}") |
| 45 | |
| 46 | class TypeConversionError(GraphLiteError): |
| 47 | """Type conversion errors""" |
no outgoing calls
no test coverage detected