/* * 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 FalhaNaConexaoComServidorException extends Throwable implements ExcecaoSistema { public FalhaNaConexaoComServidorException() { super("O sistema falhou ao conectar com o servidor."); } @Override public void exibeMensagem() { // Dialogs.showErrorDialog(ManterStage.getInstance().getStage(), FalhaNaConexaoComServidorException.super.getMessage(),"Erro",FalhaNaConexaoComServidorException.super.getLocalizedMessage()); Dialogs.showErrorDialog(new Stage(), FalhaNaConexaoComServidorException.super.getMessage(),"Erro",FalhaNaConexaoComServidorException.super.getLocalizedMessage()); } }