mirror of
https://github.com/status-im/nim-serialization.git
synced 2025-01-16 14:56:32 +00:00
Add a common interface for producing better error messages
This commit is contained in:
parent
c13420f1d0
commit
3a2595be94
@ -2,3 +2,6 @@ type
|
||||
SerializationError* = object of CatchableError
|
||||
UnexpectedEofError* = object of SerializationError
|
||||
|
||||
method formatMsg*(err: ref SerializationError, filename: string): string {.base.} =
|
||||
"Serialisation error while processing " & filename
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user