aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/protobuf/stream.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/protobuf/stream.nim b/src/protobuf/stream.nim
index 6f3b503..a0b650d 100644
--- a/src/protobuf/stream.nim
+++ b/src/protobuf/stream.nim
@@ -18,6 +18,10 @@ type
Tag* = distinct uint32
+ ParseError* = object of Exception
+
+ InvalidFieldNumberError* = object of ParseError
+
proc pbClose(s: Stream) =
close(ProtobufStream(s).stream)
ProtobufStream(s).stream = nil