in reply to Getting useful information from a thrown error

What is throw exactly?
  • Comment on Re: Getting useful information from a thrown error

Replies are listed 'Best First'.
Re^2: Getting useful information from a thrown error
by talexb (Chancellor) on Aug 23, 2022 at 21:40 UTC

    The throw I'm using causes an exception; so typically you use it in code like this:

    try { something_that_might_blow_up(); } catch { /POSSIBLE_ERROR/ && print "FATAL:A bad thing happened\n"; };
    The module Try::Tiny is where this comes from.

    Alex / talexb / Toronto

    Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.