On Fri, 23 Nov 2001, brian moseley wrote:
> > Would you like to see this changed in Exception::Class?
>
> yes please.
Do you just want a Exception->throw( stacktrace => 1, error => 'foo' )
param?
That's easy enough.
> > I have a module (not released to CPAN) that allow you to
> > scope $SIG{__DIE__} (and __WARN__) to a single package
> > (though the package may be spread over multiple files).
>
> how about to "all p5ee packages"?
That'd be possible easily enough by simply calling the 'set_sig' function
multiple times, passing in a new package each time. The current release
isn't that well documented cause I don't know what people might want with
this code.
Maybe I'll add a param that will descend a hierarchy for you so you can
say:
set_sig( __DIE__ =>
sub { ref $_[0] ?
die $_[0] :
P5EE::Exception::Unknown->throw( error => join '', @_ ) },
hierarchy => 'P5EE' );
or something like that.
/*==================
www.urth.org
We await the New Sun
==================*/