Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Propagaing error from deeply nested calles

by Anonymous Monk
on Nov 22, 2019 at 20:05 UTC ( #11109079=note: print w/replies, xml ) Need Help??


in reply to Propagaing error from deeply nested calles

Bottom-line shortcut: "yes, Exceptions are the proper way to handle this, in any programming language. That's one reason why they were invented." Exceptions are, after all, "exceptional." So, instead of burdening our code with explicit tests to see if something went wrong (and, bearing the price of failure if anyone anywhere gets their tests mixed up ...), we throw a burning torch into the air and trust that someone is prepared to catch it. Works beautifully. The "exceptional" situation is neatly taken care of, and everyone else gets to ignore it (as they properly should).
  • Comment on Re: Propagaing error from deeply nested calles

Replies are listed 'Best First'.
Re^2: Propagaing error from deeply nested calles
by Your Mother (Bishop) on Nov 23, 2019 at 01:29 UTC

    Whatís the bottom-line shortcut for the OPís actual question?

    ÖIf yes, how?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2020-02-24 00:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (104 votes). Check out past polls.

    Notices?