1) I'm not sure if you can use SQLException since its source code is
probably not known by GWT (it's not in an inherited module) so you
better catch it and throw your own exception just like you suggested

2) I'm not 100% sure but I don't think the async service definition
can throw exceptions; it just sort of wraps your service as an async
version where the return type is wrapped in a async callback, the true
service logic (return type, parameters and exception) is in the
service and its implementation; also the exception thrown by the
service method is accessible in the onFailure() method if the async
callback

Try removing the throws in your async service, it should work.

Andreas

On 6 Jul., 18:29, Magnus <[email protected]> wrote:
> Hi,
>
> another point is: If I declare my own exception type SystemService,
> and if I let the method throw this exception in all three
> implementation files (...Service, ...ServiceAsync, ...ServiceImpl),
> then I get an "uncaught exception" compiler error at the service
> invocation point.
>
> But this is not the case in the GreetingService example...
>
> What do I have to do that I can invoke the service callback without
> try/catch?
>
> Thanks
> Magnus

-- 
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