Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Getting useful information from a thrown error

by talexb (Chancellor)
on Aug 23, 2022 at 21:40 UTC ( [id://11146342]=note: print w/replies, xml ) Need Help??


in reply to Re: Getting useful information from a thrown error
in thread Getting useful information from a thrown error

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.

Replies are listed 'Best First'.
Re^3: Getting useful information from a thrown error
by Anonymous Monk on Aug 24, 2022 at 08:55 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11146342]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-03-29 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found