Exception: GraphQL::Schema::Validator::ValidationFailedError

Inherits:
ExecutionError show all
Defined in:
lib/graphql/schema/validator.rb

Instance Attribute Summary collapse

Attributes inherited from ExecutionError

#ast_node, #extensions, #options, #path

Instance Method Summary collapse

Methods inherited from ExecutionError

#to_h

Constructor Details

#initialize(errors:) ⇒ ValidationFailedError

Returns a new instance of ValidationFailedError.



106
107
108
109
# File 'lib/graphql/schema/validator.rb', line 106

def initialize(errors:)
  @errors = errors
  super(errors.join(", "))
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



104
105
106
# File 'lib/graphql/schema/validator.rb', line 104

def errors
  @errors
end