Exception: GraphQL::CoercionError

Inherits:
Error
  • Object
show all
Defined in:
lib/graphql/coercion_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, extensions: nil) ⇒ CoercionError

Returns a new instance of CoercionError



8
9
10
11
# File 'lib/graphql/coercion_error.rb', line 8

def initialize(message, extensions: nil)
  @extensions = extensions
  super(message)
end

Instance Attribute Details

#extensionsHash

under the extensions key.

Returns:

  • (Hash)

    Optional custom data for error objects which will be added



6
7
8
# File 'lib/graphql/coercion_error.rb', line 6

def extensions
  @extensions
end