Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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: (11)
As of 2014-07-23 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (136 votes), past polls