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-2.1.13 lib/graphql/coercion_error.rb
graphql-2.0.31 lib/graphql/coercion_error.rb
graphql-1.13.23 lib/graphql/coercion_error.rb
graphql-2.0.29 lib/graphql/coercion_error.rb
graphql-2.1.12 lib/graphql/coercion_error.rb
graphql-1.13.22 lib/graphql/coercion_error.rb
graphql-2.1.11 lib/graphql/coercion_error.rb
graphql-2.0.28 lib/graphql/coercion_error.rb
graphql-1.13.21 lib/graphql/coercion_error.rb
graphql-2.2.5 lib/graphql/coercion_error.rb
graphql-2.2.4 lib/graphql/coercion_error.rb
graphql-2.2.3 lib/graphql/coercion_error.rb
graphql-2.1.10 lib/graphql/coercion_error.rb
graphql-2.2.2 lib/graphql/coercion_error.rb
graphql-2.1.9 lib/graphql/coercion_error.rb
graphql-2.2.1 lib/graphql/coercion_error.rb
graphql-2.2.0 lib/graphql/coercion_error.rb
graphql-2.1.8 lib/graphql/coercion_error.rb
graphql-2.1.7 lib/graphql/coercion_error.rb
graphql-2.1.6 lib/graphql/coercion_error.rb