root / client / src / com / gonnatrak / client / exception / UserAlreadyExistsException.java @ 1

View | Annotate | Download

1
/**
2
 * Created by Andrey Khalzov
3
 * 30.12.2008 2:50:47
4
 */
5
package com.gonnatrak.client.exception;
6
7
import com.gonnatrak.client.Mediator;
8
import com.gonnatrak.client.Messages;
9
import com.gonnatrak.client.register.RegisterController;
10
11
public class UserAlreadyExistsException extends CheckedException {
12
13
    public void throwTo(Mediator mediator) {
14
        final RegisterController registerController = mediator.getRegisterMediator();
15
        registerController.stopExecuting();
16
        registerController.showWarningCheckLoginResult(
17
                Messages.MessagesSingleton.getInstance().loginNotAvailable(registerController.getCheckingLogin())
18
        );
19
        mediator.getRegisterWidget().setFocus();
20
    }
21
}