Skip to content

Commit 95a23a6

Browse files
committed
Remove blocos catch para a exceção javax.xml.bind.JAXBException
1 parent b85a689 commit 95a23a6

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,9 @@
1414
public class ManifestacaoDestinatarioA3 {
1515

1616
static TRetEnvEvento eventoManifestacao(ConfiguracoesNfe config, boolean valida, String xmlAssinado) throws NfeException {
17-
try {
18-
log.info("[XML-ENVIO]: " + xmlAssinado);
19-
xmlAssinado = EventosA3.enviarEvento(config, xmlAssinado, ServicosEnum.MANIFESTACAO, valida, DocumentoEnum.NFE);
20-
return XmlNfeUtil.xmlToObject(xmlAssinado, TRetEnvEvento.class);
21-
} catch (JAXBException e) {
22-
throw new NfeException(e.getMessage());
23-
}
17+
log.info("[XML-ENVIO]: " + xmlAssinado);
18+
xmlAssinado = EventosA3.enviarEvento(config, xmlAssinado, ServicosEnum.MANIFESTACAO, valida, DocumentoEnum.NFE);
19+
return XmlNfeUtil.xmlToObject(xmlAssinado, TRetEnvEvento.class);
2420
}
2521

2622
static String montarXML(ConfiguracoesNfe config, TEnvEvento envEvento) throws NfeException {

0 commit comments

Comments
 (0)