/* * 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 ComputadorNaoConectadoException extends Throwable implements ExcecaoSistema { public ComputadorNaoConectadoException() { super("O computador não está conectado a nenhum servidor."); } @Override public void exibeMensagem() { // Dialogs.showErrorDialog(ManterStage.getInstance().getStage(), ComputadorNaoConectadoException.super.getMessage(),"Erro",ComputadorNaoConectadoException.super.getLocalizedMessage()); Dialogs.showErrorDialog(new Stage(), ComputadorNaoConectadoException.super.getMessage(),"Erro",ComputadorNaoConectadoException.super.getLocalizedMessage()); } }