Skip to content

Commit e8658db

Browse files
author
Thiago M Sayao
committed
Disponibiliza Causa para o usuário
1 parent b9ee7eb commit e8658db

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static TRetEnviNFe enviaNfe(ConfiguracoesNfe config, TEnviNFe enviNFe, Documento
134134
return XmlNfeUtil.xmlToObject(result.getExtraElement().toString(), TRetEnviNFe.class);
135135

136136
} catch (RemoteException | XMLStreamException | JAXBException e) {
137-
throw new NfeException(e.getMessage());
137+
throw new NfeException(e.getMessage(), e);
138138
}
139139

140140
}

src/main/java/br/com/swconsultoria/nfe/exception/NfeException.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ public NfeException(String message) {
3131
this.message = message;
3232
}
3333

34+
/**
35+
* Construtor da classe.
36+
*
37+
* @param message
38+
* @param cause
39+
*/
40+
public NfeException(String message, Throwable cause) {
41+
this(cause);
42+
this.message = message;
43+
}
44+
3445
/**
3546
* @return the message
3647
*/

0 commit comments

Comments
 (0)