Exception: Cielo::API30::Request::CieloError
- Inherits:
-
StandardError
- Object
- StandardError
- Cielo::API30::Request::CieloError
- Defined in:
- lib/cielo/api30/request/cielo_error.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, body) ⇒ CieloError
constructor
A new instance of CieloError.
Constructor Details
#initialize(code, body) ⇒ CieloError
Returns a new instance of CieloError.
7 8 9 10 11 |
# File 'lib/cielo/api30/request/cielo_error.rb', line 7 def initialize(code, body) @code = code @body = body super("Error [#{code}] #{body}") end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
5 6 7 |
# File 'lib/cielo/api30/request/cielo_error.rb', line 5 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/cielo/api30/request/cielo_error.rb', line 5 def code @code end |