Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Exception::Class - how to use?

by rvosa (Curate)
on Aug 24, 2005 at 21:20 UTC ( #486368=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Bio::Phylo::Exceptions;
    use Exception::Class (
    ...
        { isa => 'Bio::Phylo::Exceptions' }
    );
    1;
    
  2. or download this
    use Scalar::Util qw(looks_like_number);
    
    ...
       ? $self->{'NUMBER'} = $number 
       : Bio::Phylo::Exceptions::BadNumber->throw(error => 'bad number');
    }
    
  3. or download this
    # try
    eval { $obj->set_number(sdf7897) };
    ...
    if (UNIVERSAL::isa($@,'Bio::Phylo::Exceptions::BadNumber')){
       # do something
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://486368]
Approved by kwaping
Front-paged by zzspectrez
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2014-08-21 18:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (141 votes), past polls