Exception: BibleQL::APIError
- Defined in:
- lib/bibleql/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message = nil, status: nil, body: nil) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(message = nil, status: nil, body: nil) ⇒ APIError
Returns a new instance of APIError.
15 16 17 18 19 |
# File 'lib/bibleql/errors.rb', line 15 def initialize( = nil, status: nil, body: nil) @status = status @body = body super() end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
13 14 15 |
# File 'lib/bibleql/errors.rb', line 13 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
13 14 15 |
# File 'lib/bibleql/errors.rb', line 13 def status @status end |