Re: How does my servlet cleanly throw an exception
No. Because doPost, which is what calls all our RPC code, throws
ServletException or IOException, and if you try to throw anything
else, Tomcat reports an error to its log about an unexpected
exception. Which is one of the things I dont' want.
Greg
On Apr 12, 12:04 pm, Christien Lomax <thecatwhispe...@gmail.com>
wrote:
> I created an exception that my app uses (eg: MyAppException) that extends
> serializable. Then when I need to throw an exception, I catch any other
> exceptions and throw MyAppException instead, passing in the message from the
> caught exception(s).
>
> Make sense?
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home