Sha256: 89d5c528ca52ff65acadc1196217425fff2905ee5b6a8a7834a50a3d56dd1559

Contents?: true

Size: 576 Bytes

Versions: 145

Compression:

Stored size: 576 Bytes

Contents

# frozen_string_literal: true
module GraphQL
  # This error is raised when `Types::Int` is given an input value outside of 32-bit integer range.
  #
  # For really big integer values, consider `GraphQL::Types::BigInt`
  #
  # @see GraphQL::Types::Int which raises this error
  class IntegerDecodingError < GraphQL::RuntimeTypeError
    # The value which couldn't be decoded
    attr_reader :integer_value

    def initialize(value)
      @integer_value = value
      super("Integer out of bounds: #{value}. \nConsider using GraphQL::Types::BigInt instead.")
    end
  end
end

Version data entries

145 entries across 145 versions & 2 rubygems

Version Path
graphql-2.1.4 lib/graphql/integer_decoding_error.rb
graphql-1.13.20 lib/graphql/integer_decoding_error.rb
graphql-2.1.3 lib/graphql/integer_decoding_error.rb
graphql-2.1.2 lib/graphql/integer_decoding_error.rb
graphql-2.1.1 lib/graphql/integer_decoding_error.rb
graphql-2.1.0 lib/graphql/integer_decoding_error.rb
graphql-2.0.27 lib/graphql/integer_decoding_error.rb
graphql-2.0.26 lib/graphql/integer_decoding_error.rb
graphql-2.0.25 lib/graphql/integer_decoding_error.rb
graphql-2.0.24 lib/graphql/integer_decoding_error.rb
graphql-2.0.23 lib/graphql/integer_decoding_error.rb
graphql-2.0.22 lib/graphql/integer_decoding_error.rb
graphql-2.0.21 lib/graphql/integer_decoding_error.rb
graphql-2.0.20 lib/graphql/integer_decoding_error.rb
graphql-2.0.17.2 lib/graphql/integer_decoding_error.rb
graphql-2.0.17.1 lib/graphql/integer_decoding_error.rb
graphql-2.0.19 lib/graphql/integer_decoding_error.rb
graphql-2.0.18 lib/graphql/integer_decoding_error.rb
graphql-2.0.17 lib/graphql/integer_decoding_error.rb
graphql-1.13.19 lib/graphql/integer_decoding_error.rb