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.10.9 lib/graphql/coercion_error.rb
graphql-1.10.8 lib/graphql/coercion_error.rb
graphql-1.10.7 lib/graphql/coercion_error.rb
graphql-1.10.6 lib/graphql/coercion_error.rb
graphql-1.10.5 lib/graphql/coercion_error.rb
graphql-1.10.4 lib/graphql/coercion_error.rb
graphql-1.10.3 lib/graphql/coercion_error.rb
graphql-1.10.2 lib/graphql/coercion_error.rb
graphql-1.9.19 lib/graphql/coercion_error.rb
graphql-1.10.1 lib/graphql/coercion_error.rb
graphql-1.10.0 lib/graphql/coercion_error.rb
graphql-1.10.0.pre4 lib/graphql/coercion_error.rb
graphql-1.9.18 lib/graphql/coercion_error.rb
graphql-1.10.0.pre3 lib/graphql/coercion_error.rb
graphql-1.9.17 lib/graphql/coercion_error.rb
graphql-1.10.0.pre2 lib/graphql/coercion_error.rb
graphql-1.9.16 lib/graphql/coercion_error.rb
graphql-1.9.15 lib/graphql/coercion_error.rb
graphql-1.9.14 lib/graphql/coercion_error.rb
graphql-1.10.0.pre1 lib/graphql/coercion_error.rb