Exception: GraphQL::Testing::Helpers::TypeNotDefinedError

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

Instance Method Summary collapse

Constructor Details

#initialize(type_name:) ⇒ TypeNotDefinedError

Returns a new instance of TypeNotDefinedError.



29
30
31
32
# File 'lib/graphql/testing/helpers.rb', line 29

def initialize(type_name:)
  message = "No type named `#{type_name}` is defined; choose another type name or define this type."
  super(message)
end