Exception: GraphQL::IntegerDecodingError

Inherits:
RuntimeTypeError show all
Defined in:
lib/graphql/integer_decoding_error.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ IntegerDecodingError

Returns a new instance of IntegerDecodingError.



12
13
14
15
# File 'lib/graphql/integer_decoding_error.rb', line 12

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

Instance Attribute Details

#integer_valueObject (readonly)

The value which couldn't be decoded



10
11
12
# File 'lib/graphql/integer_decoding_error.rb', line 10

def integer_value
  @integer_value
end