Exception: GraphQL::RootCallArgumentError

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

Overview

This root call takes different arguments.

Instance Method Summary collapse

Constructor Details

#initialize(declaration, actual) ⇒ RootCallArgumentError

Returns a new instance of RootCallArgumentError.



90
91
92
# File 'lib/graphql.rb', line 90

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