I'm using GWT (currenly working with google's eclipse plugin), and I'm trying to throw an exception from the server to the client.
My exception is something like
class LoginException extends Exception implements IsSerializable
But I get (upon loading in hosted mode):
[ERROR] Errors in '[...]/src/myPackage/client/services/Session.java'
[ERROR] Line 25: No source code is available for type hugobarrera.gestorAlumnos.server.LoginException; did you forget to inherit a required module?
Session.java is:
[...]
public interface Session extends RemoteService {
[...] (Line 25:)
String newSession(String usr, String pwd) throws LoginException;
[...]
Where am I going wrong? I've read like a MILLION places where people have problems with throwing exceptions, but none of those solutions applied.