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

Exception Classes Advice on Subclasses

by jffry (Hermit)
on Dec 21, 2005 at 03:44 UTC ( #518228=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    MyExceptions::SomeThingy
    MyExceptions::SomeThingy::SomeSpecificError
    MyExceptions::SomeThingy::AnotherProblem
    MyExceptions::SomeThingy::DontDoThat
    
  2. or download this
    MyException::SomeThingy' => {
            isa         => 'MyException',
            description => 'Bad things happen here.',
            fields      => [ 'descriptor', 'value' ],
    };
    
  3. or download this
    MyException::SomeThingy->throw(
                'error'      => 'You did something I didnt like.',
                'descriptor' => 'DontDoThat',
                'value'   => $bad_variable,
    );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://518228]
Approved by Tanktalus
Front-paged by Tanktalus
help
Chatterbox?
[choroba]: also, I discovered several vegan/vegetarian restaurants, so I can avoid meat
[LanX]: ha ha ... happy Czech :)
[choroba]: been to the War Remnants Museum, too. Quite a brutal experience
[choroba]: but still, small-talk about smuggling guns and how Trump is great with US expats isn't my cup of tea
[LanX]: brutal beer?
[LanX]: met a Canadian yesterday, he suggested building a wall and let the US pay for it
[choroba]: No, but lots of pictures of the Agent Orange victims, plus some deformed foeti
[LanX]: ugh

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2017-02-26 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (371 votes). Check out past polls.