Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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?
[LanX]: the interview was with the guy who designed the process
[LanX]: in the 70s
[GotToBTru]: so the font on the card is probably NOT Comic Sans
[GotToBTru]: that's a relief
[LanX]: Bruce_G._Blair
[choroba]: as in embossed card?
[Discipulus]: ironically from his pubblications: "Can Disarmament Work?"
[erix]: when is the bird-brain's inauguration tweet?
[erix]: (wasn't augur something to with birds too?)
[erix]: augur

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2017-01-20 12:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (174 votes). Check out past polls.