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

Re: Exceptions thrown from LEAVE

Thread Previous
From:
David Mertens
Date:
July 7, 2020 19:30
Subject:
Re: Exceptions thrown from LEAVE
Message ID:
CA+4ieYXX2N=cOhT4NZb2Dp-0QbThLBGU9u9B31Xs6mX74jgohw@mail.gmail.com
On Tue, Jul 7, 2020 at 2:43 PM Christian Millour <cm.perl@abtela.com> 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About