Hi,
(this message is addressed primarily to John
McNally, as the person with most experience
in this field)
Today I was reworking the exception handling in the
service implmentations we have, and I encoutered
one thing that I'm not sure of.
Our templating services (WM, Velocity, FreeMarker and JSP)
have metod called handleRequest(...) is declared to
throw Exception.
None of them is actually throwing any exceptions.
In case of exception being thrown in the underlying
code, the exception is logged and discarded.
WebMacro and Velocity return null as the result,
FreeMarker returns a string with error message
(including) e.toString(),
and JSP service uses data.getOut() to print
the error message.
I understand that JSP is special because writes
to the response directly instead of returning
strings.
Now I'm wondering what is the proper behaviour
in this regard (you might want to take a look
at the TurbineException class and the changes
to the services I commited today)
Feedback is mostly appreciated.
Rafal
--
Rafal Krzewski
Senior Internet Developer
mailto:[EMAIL PROTECTED]
+48 22 8534830 http://e-point.pl
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]