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.



62
63
64
# File 'lib/graphql/schema.rb', line 62

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