try { double c=matematicas.dividir(-1.6, 0); } catch (Exception ex) { throw new RuntimeException("Falló al llamar a 'dividir':" + ex.getMessage()); }