Class::Exception to create the nested error classes,
Exception::Class... m'thinks :-) (which I agree is very nice)
and Error to create syntax to catch exceptions.
I have to admit I shun the syntactic sugar and just use plain old if statements. Avoids the whole accidentally-creating-closures issue / memory leak issues.
In reply to Re^2: How to handle Errors?
by adrianh
in thread How to handle Errors?
by Scarborough
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |