Exception: AfconWave::Error
- Inherits:
-
StandardError
- Object
- StandardError
- AfconWave::Error
- Defined in:
- lib/afconwave.rb
Overview
─── Exceptions ──────────────────────────────────────────────────────────────
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message, status_code: nil, code: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, status_code: nil, code: nil) ⇒ Error
Returns a new instance of Error.
17 18 19 20 21 |
# File 'lib/afconwave.rb', line 17 def initialize(, status_code: nil, code: nil) @status_code = status_code @code = code super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
15 16 17 |
# File 'lib/afconwave.rb', line 15 def code @code end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
15 16 17 |
# File 'lib/afconwave.rb', line 15 def status_code @status_code end |