Does the module provide an error-string? you could include the error string
in the thrown exception.  Setting an error string with a known way to get at
it, like $set->err, seems to be the best practice for things that return undef
on failure.  Then the example resembles

     defined (my $result = $object->$method(@args))
             or die "$method failed: ".$object->err;

I'm not completely certain which package we're talking about so I don;t
know if it provides an err or errstr or error method or not.  If it
doesn't, adding
one for the next release might be good.

at your service,

David Nicol


On Fri, 21 Jan 2005 11:53:22 GMT, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 
> Thanks! I added this example to the docs:

-- 
David L Nicol
The revolution will not fight the germs that may cause bad breath.

Reply via email to