in reply to Re: CGI::Application cgi_prerun exception handling
in thread CGI::Application cgi_prerun exception handling
Maybe I did not make clear what my problem is.
I have runmodes that may throw exceptions and a generic pre-run that also potentially throws exceptions.
Whenever an exception occurs I want it to be handled in one central location (the error-runmode) where I will then generate different responses for the client, depending on the exception thrown (I deal with an application that generates XML for machine-clients).
The question is know how to pass an exception that occurs in the pre-run on to the error-runmode in an elegant way.
Sorry if you provided an answer to that in your posting that I failed to understand.
|
|---|