Exception: GraphQL::Query::OperationNameMissingError

Inherits:
ExecutionError show all
Defined in:
lib/graphql/query.rb

Instance Attribute Summary

Attributes inherited from ExecutionError

#ast_node, #extensions, #options, #path

Instance Method Summary collapse

Methods inherited from ExecutionError

#to_h

Constructor Details

#initialize(name) ⇒ OperationNameMissingError

Returns a new instance of OperationNameMissingError.



18
19
20
21
22
23
24
25
# File 'lib/graphql/query.rb', line 18

def initialize(name)
  msg = if name.nil?
    %|An operation name is required|
  else
    %|No operation named "#{name}"|
  end
  super(msg)
end