Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 414 | espaco | 1 | package br.com.swconsultoria.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 - samuel@swconsultoria.com.br - www.swconsultoria.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 | * 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 | |||
| 45 | /** |
||
| 46 | * @return the message |
||
| 47 | */ |
||
| 48 | public String getMessage() { |
||
| 49 | return message; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param message the message to set |
||
| 54 | */ |
||
| 55 | public void setMessage(String message) { |
||
| 56 | this.message = message; |
||
| 57 | } |
||
| 58 | |||
| 59 | |||
| 60 | } |