Exception: Bsdkrun::GraphQLError
- Defined in:
- lib/bsdkrun/errors.rb
Overview
A GraphQL request to a remote bsdkrund daemon failed — a transport
failure, a non-JSON response, or a body["errors"] entry that was not an
auth failure. Mirrors +web/src/lib/graphql.ts+'s GraphQLError.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ String?
readonly
The error's
extensions.code, when the daemon set one.
Instance Method Summary collapse
-
#initialize(message, code = nil) ⇒ GraphQLError
constructor
A new instance of GraphQLError.
Constructor Details
#initialize(message, code = nil) ⇒ GraphQLError
Returns a new instance of GraphQLError.
62 63 64 65 |
# File 'lib/bsdkrun/errors.rb', line 62 def initialize(, code = nil) super() @code = code end |
Instance Attribute Details
#code ⇒ String? (readonly)
Returns the error's extensions.code, when the daemon set one.
58 59 60 |
# File 'lib/bsdkrun/errors.rb', line 58 def code @code end |