io7m-com / cedarbridge

Cedarbridge message protocol specification language
https://www.io7m.com/software/cedarbridge
ISC License
0 stars 0 forks source link

Better context info for runtime serialization errors #26

Closed io7m closed 2 years ago

io7m commented 2 years ago

Recently, the code was switched to allow the context to raise exceptions rather than generated code raising them itself. The context has all kinds of information (a complete stack of identifiers that lead to the current location, and the current byte offset), but none of that information is included in any raised exceptions.