0

Can one raise a custom exception type?

23rd Jun 2016, 12:11 AM
M Williams
M Williams - avatar
2 Respuestas
0
Yes; it's often good practice to define an error type specific to the problem or event you want to catch.
2nd Jul 2016, 3:38 AM
Darryl Williams
Darryl Williams - avatar
0
Yes, you can customize your error. For istance, let us tipe raise ErrorName("explanation"): the output will be an error of type ErrorName with explanation as related information about your error.
10th Dec 2016, 10:02 AM
Teo Argentieri
Teo Argentieri - avatar