Exception: PlanMyStuff::APIError
- Defined in:
- lib/plan_my_stuff/errors.rb
Overview
Raised when GitHub REST API returns a non-success HTTP status
Instance Attribute Summary collapse
- #status ⇒ Integer readonly
Instance Method Summary collapse
-
#initialize(message = nil, status: nil) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(message = nil, status: nil) ⇒ APIError
Returns a new instance of APIError.
16 17 18 19 |
# File 'lib/plan_my_stuff/errors.rb', line 16 def initialize( = nil, status: nil) @status = status super() end |
Instance Attribute Details
#status ⇒ Integer (readonly)
11 12 13 |
# File 'lib/plan_my_stuff/errors.rb', line 11 def status @status end |