Exception: GraphQL::RootCallArgumentError

Inherits:
Error
  • Object
show all
Defined in:
lib/graphql.rb

Instance Method Summary collapse

Constructor Details

#initialize(declaration, actual) ⇒ RootCallArgumentError

Returns a new instance of RootCallArgumentError.



82
83
84
# File 'lib/graphql.rb', line 82

def initialize(declaration, actual)
  super("Wrong type for #{declaration.name}: expected a #{declaration.type} but got #{actual}")
end