Although we always recommend using exceptions (e.g. stop early on any errors) for any of the projects under DSS Extensions, old code based on the official COM module may already be checking DSS.Error.Number manually.
To allow easier migration on that context, especially for users required to toggle between implementations, adding a static field to toggle the exceptions and allow the users to follow the original codepath seems ideal, and it's almost trivial to implement on our side.
Although we always recommend using exceptions (e.g. stop early on any errors) for any of the projects under DSS Extensions, old code based on the official COM module may already be checking
DSS.Error.Number
manually.To allow easier migration on that context, especially for users required to toggle between implementations, adding a static field to toggle the exceptions and allow the users to follow the original codepath seems ideal, and it's almost trivial to implement on our side.