Ok, I figured out what's going on here. Checked exceptions appear to be handled automatically by GWT and thrown to the client (not sure what happens here if they're not serializable).
Unchecked exceptions are processed by AbstractRemoteServiceServlet.doUnexpectedFailure(Throwable). There does not appear to be a way to register a global exception handler so a base class overriding this method was necessary. Additionally, this method defers to RPCServletUtils.writeResponseForUnexpectedFailure(...) to write the response to the server. This utility method essentially ignores the error thrown on the server and writes a generic response. The solution was to override the method and rather than call the RPCServletUtils method, to copy and tweak it so that it sends back the message I need to send. On Tuesday, April 10, 2012 9:26:19 AM UTC-6, Adam Gordon wrote: > > We're building some internal web applications for divisions and we have a > need to send any server side stack traces to the client so that when > employee end-users encounter errors they can put a stacktrace in our > ticketing system. > > I have registered my own GWT.UncaughtExceptionHandler that recursively > iterates over the throwable (and any nested throwables/exceptions) to > generate a stacktrace and then, for now, puts this in a dialog. This code > is working but the behavior I am seeing is that the exception thrown on the > server is not what is being displayed. It's like it's being translated. > > Anyone have any idea what's going on here and how to fix it? Thanks. > > --adam > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/xn19Fk6mMW8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.