Hi!

I had the same problem and the only solution I found was this:

private SerializableException createSerializableException(Exception e)
{
                StringWriter sw = new StringWriter();
                e.printStackTrace(new PrintWriter(sw));
                String stacktrace = sw.toString();
                SerializableException exception = new SerializableException
(stacktrace);
                return exception;
        }

regards

/h

On Sep 16, 6:44 pm, JoeB <[email protected]> wrote:
> Hi all,
>
> In my GWT application's service implementation, I throw a custom
> exception which is handled in the client's onFailure(Throwable caught)
> method.  The "caught" parameter is the custom exception that was
> thrown, except that it doesn't contain any stack trace.  I would like
> to have the stack trace in the client in order to display it (when the
> client is configured in a debugging mode).  Is there a GWT reason that
> stack traces are stripped out of an exception passed from server to
> client?
>
> -- Joe
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to