|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re^2: Use of "die" in OO modulesby sth (Priest) |
| on Jan 19, 2007 at 11:21 UTC ( [id://595484]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
I recently added a ErrStr var to my modules, kinda of like the DBI::errstr. So if the object constructor fails the object is an undef and the the Errstr can be checked, i.e.
...otherwise if there is an error with a method call the error string can be retrieved, I really struggled with what was the correct way to handle the errors, I'm still not sure I like my solution.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||