Exception: PlanMyStuff::GraphQLError
- Defined in:
- lib/plan_my_stuff/errors.rb
Overview
Raised when GitHub GraphQL API returns errors in the response body
Instance Attribute Summary collapse
- #errors ⇒ Array<Hash> readonly
Instance Method Summary collapse
-
#initialize(message = nil, errors: []) ⇒ GraphQLError
constructor
A new instance of GraphQLError.
Constructor Details
#initialize(message = nil, errors: []) ⇒ GraphQLError
Returns a new instance of GraphQLError.
30 31 32 33 |
# File 'lib/plan_my_stuff/errors.rb', line 30 def initialize( = nil, errors: []) @errors = errors super() end |
Instance Attribute Details
#errors ⇒ Array<Hash> (readonly)
25 26 27 |
# File 'lib/plan_my_stuff/errors.rb', line 25 def errors @errors end |