Exception: Flt::Num::ConversionSyntax

Inherits:
InvalidOperation show all
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

#context

Class Method Summary collapse

Methods inherited from InvalidOperation

#initialize

Methods inherited from Exception

#initialize

Constructor Details

This class inherits a constructor from Flt::Num::InvalidOperation

Class Method Details

.handle(context, *args) ⇒ Object


389
390
391
# File 'lib/flt/num.rb', line 389

def self.handle(context, *args)
  context.num_class.nan
end