nim-serialization/serialization/errors.nim

10 lines
364 B
Nim
Raw Normal View History

type
SerializationError* = object of CatchableError
UnexpectedEofError* = object of SerializationError
CustomSerializationError* = object of SerializationError
2020-06-15 21:59:35 +00:00
method formatMsg*(err: ref SerializationError, filename: string): string
{.gcsafe, base, raises: [Defect].} =
"Serialisation error while processing " & filename & ":" & err.msg