Exception: GraphQL::Query::OperationNameMissingError
- Inherits:
-
ExecutionError
- Object
- StandardError
- Error
- ExecutionError
- GraphQL::Query::OperationNameMissingError
- Defined in:
- lib/graphql/query.rb
Instance Attribute Summary
Attributes inherited from ExecutionError
#ast_node, #extensions, #options, #path
Instance Method Summary collapse
-
#initialize(name) ⇒ OperationNameMissingError
constructor
A new instance of OperationNameMissingError.
Methods inherited from ExecutionError
Constructor Details
#initialize(name) ⇒ OperationNameMissingError
Returns a new instance of OperationNameMissingError.
23 24 25 26 27 28 29 30 |
# File 'lib/graphql/query.rb', line 23 def initialize(name) msg = if name.nil? %|An operation name is required| else %|No operation named "#{name}"| end super(msg) end |