Sha256: 4908d1f29260b6e14e4d946cdfb42106792fdbabe0653a63ff21704aaba94c87

Contents?: true

Size: 344 Bytes

Versions: 143

Compression:

Stored size: 344 Bytes

Contents

# frozen_string_literal: true
module GraphQL
  class CoercionError < GraphQL::Error
    # @return [Hash] Optional custom data for error objects which will be added
    # under the `extensions` key.
    attr_accessor :extensions

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

Version data entries

143 entries across 143 versions & 2 rubygems

Version Path
graphql-1.12.21 lib/graphql/coercion_error.rb
graphql-1.12.20 lib/graphql/coercion_error.rb
graphql-1.12.19 lib/graphql/coercion_error.rb
graphql-1.11.10 lib/graphql/coercion_error.rb
graphql-1.12.18 lib/graphql/coercion_error.rb
graphql-1.11.9 lib/graphql/coercion_error.rb
graphql-1.12.17 lib/graphql/coercion_error.rb
graphql-1.12.16 lib/graphql/coercion_error.rb
graphql-1.12.15 lib/graphql/coercion_error.rb
graphql-1.12.14 lib/graphql/coercion_error.rb
graphql-1.12.13 lib/graphql/coercion_error.rb
graphql-1.12.12 lib/graphql/coercion_error.rb
graphql-1.12.11 lib/graphql/coercion_error.rb
graphql-1.12.10 lib/graphql/coercion_error.rb
graphql-1.12.9 lib/graphql/coercion_error.rb
graphql-1.12.8 lib/graphql/coercion_error.rb
graphql-1.12.7 lib/graphql/coercion_error.rb
graphql-1.12.6 lib/graphql/coercion_error.rb
graphql-1.12.5 lib/graphql/coercion_error.rb
graphql-1.11.8 lib/graphql/coercion_error.rb