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.0.4 lib/graphql/coercion_error.rb
graphql-2.0.3 lib/graphql/coercion_error.rb
graphql-1.13.11 lib/graphql/coercion_error.rb
graphql-2.0.2 lib/graphql/coercion_error.rb
graphql-2.0.1 lib/graphql/coercion_error.rb
graphql-1.13.10 lib/graphql/coercion_error.rb
graphql-2.0.0 lib/graphql/coercion_error.rb
graphql-1.13.9 lib/graphql/coercion_error.rb
graphql-1.12.24 lib/graphql/coercion_error.rb
graphql-1.13.8 lib/graphql/coercion_error.rb
graphql-1.13.7 lib/graphql/coercion_error.rb
graphql-1.13.6 lib/graphql/coercion_error.rb
graphql-1.13.5 lib/graphql/coercion_error.rb
graphql-1.13.4 lib/graphql/coercion_error.rb
graphql-1.13.3 lib/graphql/coercion_error.rb
graphql-1.12.23 lib/graphql/coercion_error.rb
graphql-1.13.2 lib/graphql/coercion_error.rb
graphql-1.13.1 lib/graphql/coercion_error.rb
graphql-1.12.22 lib/graphql/coercion_error.rb
graphql-1.13.0 lib/graphql/coercion_error.rb