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.



105
106
107
# File 'lib/graphql.rb', line 105

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