Exception: BSON::Error::UnrepresentablePrecision

Inherits:
BSON::Error
  • Object
show all
Defined in:
lib/bson/error/unrepresentable_precision.rb

Overview

Raised when the significand provided is outside the valid range.

Instance Method Summary collapse

Instance Method Details

#messageString

Get the custom error message for the exception.

Returns:

  • (String)

    The error message.



13
14
15
# File 'lib/bson/error/unrepresentable_precision.rb', line 13

def message
  'The value contains too much precision for Decimal128 representation'
end