Class: GraphQL::FloatDecodingError
- Inherits:
-
RuntimeTypeError
- Object
- RuntimeTypeError
- GraphQL::FloatDecodingError
- Defined in:
- lib/graphql/float_decoding_error.rb
Overview
This error is raised when Types::Float is given a non-finite input value.
Instance Attribute Summary collapse
-
#float_value ⇒ Object
readonly
The value which couldn't be decoded.
Instance Method Summary collapse
-
#initialize(value) ⇒ FloatDecodingError
constructor
A new instance of FloatDecodingError.
Constructor Details
#initialize(value) ⇒ FloatDecodingError
Returns a new instance of FloatDecodingError.
8 9 10 11 |
# File 'lib/graphql/float_decoding_error.rb', line 8 def initialize(value) @float_value = value super("Float is not finite: #{value.inspect}.") end |
Instance Attribute Details
#float_value ⇒ Object (readonly)
The value which couldn't be decoded
6 7 8 |
# File 'lib/graphql/float_decoding_error.rb', line 6 def float_value @float_value end |