serdedotnet / serde

Serde.NET is a C# port of the popular Serde serialization library for Rust
https://serdedotnet.github.io/
BSD 3-Clause "New" or "Revised" License
154 stars 6 forks source link

Open up InvalidDeserializeValueException #196

Closed agocke closed 2 months ago

agocke commented 2 months ago

Renames InvalidDeserializeValueException to DeserializeException and unseals it. This will allow formats to define their own custom subtypes of the exception.

Some helper methods have also been added to DeserializeException for throwing common errors, including ones thrown by the source generator.