Exception: SurenotifyRails::APIError
- Defined in:
- lib/surenotify_rails/errors.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(message, code: nil, body: nil) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(message, code: nil, body: nil) ⇒ APIError
Returns a new instance of APIError.
11 12 13 14 15 |
# File 'lib/surenotify_rails/errors.rb', line 11 def initialize(, code: nil, body: nil) super() @code = code @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
9 10 11 |
# File 'lib/surenotify_rails/errors.rb', line 9 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
9 10 11 |
# File 'lib/surenotify_rails/errors.rb', line 9 def code @code end |