Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

(tye)Re2: Throwing Exceptions and Error Handling

by tye (Sage)
on Jun 15, 2001 at 00:44 UTC ( [id://88620]=note: print w/replies, xml ) Need Help??

in reply to Throwing Exceptions and Error Handling

It'd be really nice if one of the dozen exception modules got included in the core (besides the very old, that is). I say this because one of the nice things about exceptions in other languages is that they interoperate.

I have no idea whether any of the many exception modules can deal with each others' exceptions, and that has been a big reason why I haven't invested the time in any of them.

Update based on John M. Dlugosz's reply: Yeah, that is all I am talking about. I suspect that one or more of those modules is well written enough that it can deal with exceptions from other modules intelligently. Perl gives us eval and die, but we need a common idiom for catch() that works with all reasonable exception modules. I'd base such a catch() around UNIVERSAL::isa() but with support for substring/regex matches on error text (since not all uses of die are going to be throwing objects).

I think there is plenty of room for more than one way of writing catch(), etc. But we need an example in the core that sets a de facto standard for interoperability among them.

        - tye (but my friends call me "Tye")
  • Comment on (tye)Re2: Throwing Exceptions and Error Handling

Replies are listed 'Best First'.
Re-4: Throwing Exceptions and Error Handling
by John M. Dlugosz (Monsignor) on Jun 15, 2001 at 00:53 UTC
    I suppose something to promote standardization should be included with the core, but still allow creative freedom and extension.

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-05-28 14:34 GMT
Find Nodes?
    Voting Booth?

    No recent polls found