[Wellington-pm] Rethrowing exceptions

Daniel Pittman daniel at rimspace.net
Sun Nov 5 20:52:14 PST 2006


michael at diaspora.gen.nz writes:

>>What I'm looking for is something equivilent to rethrowing the same
>>exception object in Java, or an empty throw in C++.  I'm particularly
>>interested in being able to, eg, get the code reference/stack trace at
>>the point something actually went wrong, rather than at the point that
>>the exception is rethrown.
>
> I can't speak to fancy stack traces, and things, but this works for
> me:

man Carp

use Carp;

Regards,
        Daniel
-- 
Digital Infrastructure Solutions -- making IT simple, stable and secure
Phone: 0401 155 707        email: contact at digital-infrastructure.com.au
                 http://digital-infrastructure.com.au/


More information about the Wellington-pm mailing list