dolittle-obsolete / DotNET.Fundamentals

Reusable, fundamental abstractions and building blocks
http://www.dolittle.io
MIT License
4 stars 8 forks source link

Better exceptions #240

Open smithmx opened 5 years ago

smithmx commented 5 years ago

https://github.com/dolittle-fundamentals/DotNET.Fundamentals/blob/9d573d32bee086f6e5502994f62f1e4b3d045550/Source/PropertyBags/PropertyBagToTypeInstanceFactory.cs#L19

The exceptions when you cannot instantiate the object are very obscure and non-descriptive. We should have specific exceptions for each thing that can go wrong. It's very difficult to understand even with a stacktrace at the moment.

┆Issue is synchronized with this Asana task