in reply to Trapping errors with specificity

I'm not sure this is an answer, but it might help you find one... Can you use Aspect (or one of the related packages) to intercept the die()s?

Replies are listed 'Best First'.
Re^2: Trapping errors with specificity
by diotalevi (Canon) on Aug 07, 2006 at 20:42 UTC

    Assuming I control the code being called I could imagine that it could be given advice about packaging up any exceptions it might report. My current problem assumes I don't control the code I'm about to call.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊