/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package socius.excecoes; import javafx.scene.control.Dialogs; import javafx.stage.Stage; /** * * @author Lucas Dillmann <lucas [at] dillmann.com.br> */ public class UsuarioJaLogadoException extends Throwable implements ExcecaoSistema { public UsuarioJaLogadoException() { super("O usuário informado já está autenticado em outro computador. Se você efetuou logout recentemente aguarde 30 segundos e tente novamente."); } @Override public void exibeMensagem() { // Dialogs.showErrorDialog(ManterStage.getInstance().getStage(), FalhaNaConexaoComServidorException.super.getMessage(),"Erro",FalhaNaConexaoComServidorException.super.getLocalizedMessage()); Dialogs.showErrorDialog(new Stage(), UsuarioJaLogadoException.super.getMessage(),"Erro","Erro"); } }