Exception: Nfcom::Errors::NotaRejeitada
- Inherits:
-
SefazError
- Object
- StandardError
- Error
- SefazError
- Nfcom::Errors::NotaRejeitada
- Defined in:
- lib/nfcom/errors.rb
Instance Attribute Summary collapse
-
#codigo ⇒ Object
readonly
Returns the value of attribute codigo.
-
#motivo ⇒ Object
readonly
Returns the value of attribute motivo.
Instance Method Summary collapse
-
#initialize(codigo, motivo) ⇒ NotaRejeitada
constructor
A new instance of NotaRejeitada.
Constructor Details
#initialize(codigo, motivo) ⇒ NotaRejeitada
Returns a new instance of NotaRejeitada.
17 18 19 20 21 |
# File 'lib/nfcom/errors.rb', line 17 def initialize(codigo, motivo) @codigo = codigo @motivo = motivo super("Nota rejeitada [#{codigo}]: #{motivo}") end |
Instance Attribute Details
#codigo ⇒ Object (readonly)
Returns the value of attribute codigo.
15 16 17 |
# File 'lib/nfcom/errors.rb', line 15 def codigo @codigo end |
#motivo ⇒ Object (readonly)
Returns the value of attribute motivo.
15 16 17 |
# File 'lib/nfcom/errors.rb', line 15 def motivo @motivo end |