Posted on 2010-02-16 20:38:50.944939-08 by kerisman in response to 12361
Re: Inconsistency in exception handling
You're right, that was an oversight. Thank you for pointing it out. In fact, any time general exceptions are caught and thrown again using a known exception alias from CLIF::Exceptions (which, as you noticed, is a technique used internally by CLIF to partition a potentially unlimited set of exception types into known classes so a context-specific diagnostic message can be printed on the console), the code should use the
throw_XXX_exception( error => $e )
syntax to preserve the exception object. This will be fixed in the next version.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.