Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | package nfe.exception; |
| 2 | |||
| 3 | /** |
||
| 4 | * Exceção a ser lançada na ocorrência de falhas provenientes da Nota Fiscal Eletronica. |
||
| 5 | * |
||
| 6 | * @author Samuel Oliveira - samuk.exe@hotmail.com - www.samuelweb.com.br |
||
| 7 | */ |
||
| 8 | public class NfeException extends Exception { |
||
| 9 | |||
| 10 | private static final long serialVersionUID = -5054900660251852366L; |
||
| 11 | |||
| 12 | String message; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Construtor da classe. |
||
| 16 | * |
||
| 17 | * @param e |
||
| 18 | */ |
||
| 19 | public NfeException(Throwable e) { |
||
| 20 | super(e); |
||
| 21 | } |
||
| 22 | |||
| 23 | |||
| 24 | /** |
||
| 25 | * Construtor da classe. |
||
| 26 | * |
||
| 27 | * @param message |
||
| 28 | */ |
||
| 29 | public NfeException(String message) { |
||
| 30 | this((Throwable) null); |
||
| 31 | this.message = message; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return the message |
||
| 36 | */ |
||
| 37 | public String getMessage() { |
||
| 38 | return message; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param message the message to set |
||
| 43 | */ |
||
| 44 | public void setMessage(String message) { |
||
| 45 | this.message = message; |
||
| 46 | } |
||
| 47 | |||
| 48 | |||
| 49 | } |