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.


41
42
43
# File 'lib/graphql/schema.rb', line 41

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