class BSON::Decimal128::UnrepresentablePrecision
Raised when the significand provided is outside the valid range.
@note This class derives from InvalidRange for backwards compatibility,
however when RUBY-1806 is implemented it should be changed to derive from the base BSON exception class.
Public Instance Methods
message()
click to toggle source
Get the custom error message for the exception.
@return [ String ] The error message.
# File lib/bson/decimal128.rb, line 350 def message 'The value contains too much precision for Decimal128 representation' end