Exception: Flt::Num::ConversionSyntax
- Inherits:
-
InvalidOperation
- Object
- StandardError
- Exception
- InvalidOperation
- Flt::Num::ConversionSyntax
- Defined in:
- lib/flt/num.rb
Overview
Conversion syntax error exception (Trying to convert badly formed string.)
This occurs and signals invalid-operation if an string is being converted to a number and it does not conform to the numeric string syntax. The result is NaN.
Instance Attribute Summary
Attributes inherited from Exception
Class Method Summary collapse
Methods inherited from InvalidOperation
Methods inherited from Exception
Constructor Details
This class inherits a constructor from Flt::Num::InvalidOperation
Class Method Details
.handle(context, *args) ⇒ Object
388 389 390 |
# File 'lib/flt/num.rb', line 388 def self.handle(context, *args) context.num_class.nan end |