Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Best Practices for Exception Handling

by Ovid (Cardinal)
on Jan 28, 2003 at 23:04 UTC ( #230799=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $data = $self->__validate_added_data;
    if ( UNIVERSAL::isa( $data, 'Foo::Form' ) ) {
    ...
    else {
        # process the error
    }
    
  2. or download this
    try {
        my $data = $self->__validate_added_data;
    ...
    catch FormValidationError with {
        # process the error
    };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://230799]
Approved by valdez
Front-paged by Enlil
help
Chatterbox?
[mark4]: Sorry, There was a typo in my last message. I installed "PAR-Packer" and I now have a pp.bat and all is working well. Thanks again for your help.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2018-01-19 21:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (223 votes). Check out past polls.

    Notices?