of the
service interface method (or exceptions that are a subtype of whatever
is declared).
This means catching exceptions server-side and re-throwing an
appropriate exception, as well as making sure there's a throws clause on
your service interface methods.
Gerasimos Tzoganis wrote:
No one
Thanks for your help, it works now. I didn't throw the exception in the
client's interface service method as this would cause an error, I threw it only
in the implemented method on the server and returned the message to the client.
It seems to work.
I don't actually want users to report all
That's a good point. I think the previous solution of throwing a new customised
exception when an exception is caught on the server handles with this issue.
Besides, it is necessary for my application to inform the user that he has
submitted a misformed query, and that he needs to reform it.