Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 imbibing at the Monastery: (14)
As of 2015-07-30 21:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls