Exception: BSON::Decimal128::InvalidRange Private

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/bson/decimal128.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Raised when the exponent or significand provided is outside the valid range.

Since:

  • 4.2.0

Constant Summary collapse

MESSAGE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The custom error message for this error.

Since:

  • 4.2.0

'Value out of range for Decimal128 representation.'.freeze

Instance Method Summary collapse

Instance Method Details

#messageString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Get the custom error message for the exception.

Examples:

Get the message.

error.message

Returns:

  • (String)

    The error message.

Since:

  • 4.2.0


312
313
314
# File 'lib/bson/decimal128.rb', line 312

def message
  MESSAGE
end