Exception: GraphQL::IntegerDecodingError
- Inherits:
- 
      RuntimeTypeError
      
        - Object
- StandardError
- Error
- RuntimeTypeError
- GraphQL::IntegerDecodingError
 
- 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
- 
  
    
      #integer_value  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    The value which couldn’t be decoded. 
Instance Method Summary collapse
- 
  
    
      #initialize(value)  ⇒ IntegerDecodingError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of IntegerDecodingError. 
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_value ⇒ Object (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 |