Exception: AureEx::Error
- Inherits:
-
StandardError
- Object
- StandardError
- AureEx::Error
- Defined in:
- lib/aure_ex/client.rb
Overview
Erro tipado da API AureEX.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message, code: nil, details: nil, status_code: 0) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code: nil, details: nil, status_code: 0) ⇒ Error
Returns a new instance of Error.
12 13 14 15 16 17 |
# File 'lib/aure_ex/client.rb', line 12 def initialize(, code: nil, details: nil, status_code: 0) super() @code = code @details = details @status_code = status_code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
10 11 12 |
# File 'lib/aure_ex/client.rb', line 10 def code @code end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
10 11 12 |
# File 'lib/aure_ex/client.rb', line 10 def details @details end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
10 11 12 |
# File 'lib/aure_ex/client.rb', line 10 def status_code @status_code end |