develooper Front page | perl.perl5.porters | Postings from July 2020

Re: Exceptions thrown from LEAVE

Thread Previous
David Mertens
July 7, 2020 19:30
Re: Exceptions thrown from LEAVE
Message ID:
On Tue, Jul 7, 2020 at 2:43 PM Christian Millour <> wrote:

> Le 07/07/2020 à 18:24, Paul "LeoNerd" Evans a écrit :
> >    c) Combine 123 and 456 into a new "double fault" exception
> >       representation
> variants on c). I would love a stack of exceptions, or linked
> exceptions, to tell me e.g. "weeeell, your original problem was a
> timeout on accessing such and such web resource; then your failed to
> remotely log that error because, duh, you seem to be out of network;
> then your fallback logger also failed because it looks like you have
> exceeded your disk quota".

That made my afternoon. Bonus points if you could actually get the stack
trace to use this *exact* kind of language.

 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About