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

+3

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

AJESH KUMAR

1 Answer

New Answer

+3

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)