Closed Mackiovello closed 6 years ago
Yes that makes a lot of sense. We discussed this quite some time ago and decided that all .net codehosts need to share the same exceptions and have the proper exception created based on errorcode.
The task was assigned to me (https://github.com/Starcounter/level1/issues/4272), I started it, but never finished it 😢
Lets up the priority again now that we're trying to get Nova up and running for real.
Okay, let's keep the original issue in Starcounter/level1#4272 and close this one.
It's not super urgent, but it would definitely make Nova development and maintenance easier.
In Nova, when receiving an exception for
Starcounter.QueryProcessor
, which usesStarcounter.ErrorCodes
, you get aSystem.Exception
, no matter what exception is actually thrown. This exception, in turn, has a message with the actual exception, such as:It would be great if
Starcounter.ErrorCodes
had concrete classes of these exceptions so that the packages consuming them, such asStarcounter.QueryProcessor
, could throw the actual exception instead ofSystem.Exception
and make it easier for others to catch and handle these exceptions.Is this reasonable?