Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How do I report an error back to the user of my object?

by kcott (Archbishop)
on Jun 04, 2012 at 22:32 UTC ( [id://974389]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        if (! $self->loaddata()) {
            die "Error loading data!";
        }
        return $self;
    
  2. or download this
        eval { $self->loaddata() };
        if ($@) {
            die "Error loading data! Reason: $@";
        }
        return $self;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-20 15:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found