Class: GraphQL::Schema::Validator::ValidationFailedError

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

Instance Attribute Summary collapse

Attributes inherited from ExecutionError

#extensions, #options, #path

Instance Method Summary collapse

Methods inherited from ExecutionError

#finalize_graphql_result, #to_h

Constructor Details

#initialize(errors:) ⇒ ValidationFailedError

Returns a new instance of ValidationFailedError.



173
174
175
176
# File 'lib/graphql/schema/validator.rb', line 173

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

Instance Attribute Details

#errors ⇒ Object (readonly)

Returns the value of attribute errors.



171
172
173
# File 'lib/graphql/schema/validator.rb', line 171

def errors
  @errors
end