Exception: GraphQL::DSL::Error
- Inherits:
-
StandardError
- Object
- StandardError
- GraphQL::DSL::Error
- Defined in:
- lib/graphql/dsl/error.rb
Overview
GraphQL DSL error
Instance Attribute Summary collapse
-
#arguments ⇒ Hash
readonly
Additional error arguments.
Instance Method Summary collapse
-
#initialize(msg = nil, **arguments) ⇒ Error
constructor
Create GraphQL error.
-
#message ⇒ String
Error message.
Constructor Details
#initialize(msg = nil, **arguments) ⇒ Error
Create GraphQL error
17 18 19 20 21 |
# File 'lib/graphql/dsl/error.rb', line 17 def initialize(msg = nil, **arguments) super(msg) @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Hash (readonly)
Returns additional error arguments.
10 11 12 |
# File 'lib/graphql/dsl/error.rb', line 10 def arguments @arguments end |
Instance Method Details
#message ⇒ String
Error message
27 28 29 |
# File 'lib/graphql/dsl/error.rb', line 27 def super + (arguments ? "\nArguments: #{arguments}" : '') end |