Raise without if condition | SoloLearn: Learn to code for FREE!


Raise without if condition

How does it make sense to Raise an exception outside a condition check using If.

1/27/2018 2:57:52 PM


1 Answer

New Answer


you can make a method which constructs an exception from some string describing it, when you want to add some information to every exception's description (like values of variables)