Determining is a Partial is Rendering

Is there a way to determine if the current render cycle is for a
partial?

I have an exception handler setup, but I’d like to re-throw the
exception if it is thrown while rendering a partial.

Thanks for any advice,
Andrew

You could check out thread.backtrace and maybe parse it.

andrew4ta wrote:

Is there a way to determine if the current render cycle is for a
partial?

I have an exception handler setup, but I’d like to re-throw the
exception if it is thrown while rendering a partial.

Thanks for any advice,
Andrew