Skip to content

Commit 01066b0

Browse files
committed
Remove blocos catch para a exceção javax.xml.bind.JAXBException
1 parent 0511f38 commit 01066b0

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/main/java/br/com/swconsultoria/nfe/CancelarA3.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,16 @@ public class CancelarA3 {
1313

1414
static TRetEnvEvento eventoCancelamento(ConfiguracoesNfe config, boolean valida, DocumentoEnum tipoDocumento, String xmlAssinado)
1515
throws NfeException {
16-
try {
16+
1717
String xmlRetorno = EventosA3.enviarEvento(config, xmlAssinado, ServicosEnum.CANCELAMENTO, valida, tipoDocumento);
1818
return XmlNfeUtil.xmlToObject(xmlRetorno, TRetEnvEvento.class);
19-
20-
} catch (JAXBException e) {
21-
throw new NfeException(e.getMessage());
22-
}
2319
}
2420

2521
static br.com.swconsultoria.nfe.schema.envEventoCancSubst.TRetEnvEvento eventoCancelamentoSubstituicao(ConfiguracoesNfe config, boolean valida, DocumentoEnum tipoDocumento, String xmlAssinado)
2622
throws NfeException {
27-
try {
23+
2824
String xmlRetorno = EventosA3.enviarEvento(config, xmlAssinado, ServicosEnum.CANCELAMENTO_SUBSTITUICAO, valida, tipoDocumento);
2925
return XmlNfeUtil.xmlToObject(xmlRetorno, br.com.swconsultoria.nfe.schema.envEventoCancSubst.TRetEnvEvento.class);
30-
31-
} catch (JAXBException e) {
32-
throw new NfeException(e.getMessage());
33-
}
3426
}
3527

3628
static String montaXmleventoCancelamento(ConfiguracoesNfe config, TEnvEvento enviEvento)

0 commit comments

Comments
 (0)