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.5 lib/graphql/coercion_error.rb
graphql-2.1.4 lib/graphql/coercion_error.rb
graphql-1.13.20 lib/graphql/coercion_error.rb
graphql-2.1.3 lib/graphql/coercion_error.rb
graphql-2.1.2 lib/graphql/coercion_error.rb
graphql-2.1.1 lib/graphql/coercion_error.rb
graphql-2.1.0 lib/graphql/coercion_error.rb
graphql-2.0.27 lib/graphql/coercion_error.rb
graphql-2.0.26 lib/graphql/coercion_error.rb
graphql-2.0.25 lib/graphql/coercion_error.rb
graphql-2.0.24 lib/graphql/coercion_error.rb
graphql-2.0.23 lib/graphql/coercion_error.rb
graphql-2.0.22 lib/graphql/coercion_error.rb
graphql-2.0.21 lib/graphql/coercion_error.rb
graphql-2.0.20 lib/graphql/coercion_error.rb
graphql-2.0.17.2 lib/graphql/coercion_error.rb
graphql-2.0.17.1 lib/graphql/coercion_error.rb
graphql-2.0.19 lib/graphql/coercion_error.rb
graphql-2.0.18 lib/graphql/coercion_error.rb
graphql-2.0.17 lib/graphql/coercion_error.rb