Exception: Weaviate::GraphQLError
- Defined in:
- lib/weaviate/error.rb,
sig/weaviate.rbs
Overview
Raised when a GraphQL query returns errors
Instance Attribute Summary collapse
-
#errors ⇒ Array[Hash[String, untyped]]
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ GraphQLError
constructor
A new instance of GraphQLError.
Constructor Details
#initialize(errors) ⇒ GraphQLError
Returns a new instance of GraphQLError.
53 54 55 56 |
# File 'lib/weaviate/error.rb', line 53 def initialize(errors) @errors = errors super(errors.map { |e| e["message"] }.join(", ")) end |
Instance Attribute Details
#errors ⇒ Array[Hash[String, untyped]] (readonly)
Returns the value of attribute errors.
51 52 53 |
# File 'lib/weaviate/error.rb', line 51 def errors @errors end |