public int retorneAnoFabVei(String placa) throws ExcecaoPlacaInexistente { Veiculo vei = banco.getVeiculoComPlaca(placa); if (vei == null) throw new ExcecaoPlacaInexistente(); return vei.getAno(); }