/* * 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 SistemaOperacionalNaoSuportadoException extends Throwable implements ExcecaoSistema { public SistemaOperacionalNaoSuportadoException() { super("Sistema operacional residente não suportado pelo sistema."); } @Override public void exibeMensagem() { // Dialogs.showErrorDialog(ManterStage.getInstance().getStage(), SistemaOperacionalNaoSuportadoException.super.getMessage(),"Erro",SistemaOperacionalNaoSuportadoException.super.getLocalizedMessage()); Dialogs.showErrorDialog(new Stage(), SistemaOperacionalNaoSuportadoException.super.getMessage(),"Erro",SistemaOperacionalNaoSuportadoException.super.getLocalizedMessage()); } }