Exception: Decimal::ConversionSyntax

Inherits:
InvalidOperation show all
Defined in:
lib/decimal/decimal.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 Decimal::InvalidOperation

Class Method Details

.handle(context, *args) ⇒ Object



274
275
276
# File 'lib/decimal/decimal.rb', line 274

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