Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by tobyink (Canon)
on Jun 05, 2012 at 06:38 UTC ( [id://974413]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    our @ISA = qw/Exporter/;
    our @EXPORTER = qw/new/;
    
  2. or download this
    bless $self, $class;
    
  3. or download this
    use Carp qw/confess/;
    
    ...
            confess "Error loading data!";
        }
    }
    
  4. or download this
    my $obj = coolobject->new or die "$!";
    
  5. or download this
    my $obj = eval { coolobject->new }; # $obj might be undef
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-03-29 07:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found