13 Oct
2020
13 Oct
'20
6:02 p.m.
I keep using a syntax of <SomeActualException>.<someSubType> for a reason. It is piggybacking on an already established exception and in reality just providing a sub-type that could easily be used by the except block to determine acceptance. An easy implementation of this still constructs <SomeActualException> that just has a property of subtype so if you handle <SomeActualException> explicitly using the current syntax it would catch it and the parameters you fed in the raise would just be in the e.args.