On Thu, 22 Nov 2001, Dave Rolsky wrote:

> Do you just want a Exception->throw( stacktrace => 1,
> error => 'foo' ) param?
>
> That's easy enough.

that seems generally useful but isn't really how i'd prefer
to use it. how about also a method fill_in_stacktrace that i
can call after the exception is thrown? would the stacktrace
be generated incorrectly?

> That'd be possible easily enough by simply calling the
> 'set_sig' function multiple times, passing in a new
> package each time.

i wouldn't want to require every p5ee module to do that. the
"core" or "runtime" should set things up so that p5ee
modules magically get the benefit when they are loaded.

> 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.

would that meet the need i outlined above?

Reply via email to