Exception: GraphQL::Schema::InvalidTypeError

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

Instance Method Summary collapse

Constructor Details

#initialize(type, errors) ⇒ InvalidTypeError

Returns a new instance of InvalidTypeError.



47
48
49
# File 'lib/graphql/schema.rb', line 47

def initialize(type, errors)
  super("Type #{type.respond_to?(:name) ? type.name :  "Unnamed type" } is invalid: #{errors.join(", ")}")
end