Exception: BSON::Error::InvalidDecimal128String

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

Overview

Raised when trying to create a Decimal128 from a string with

an invalid format.

Constant Summary collapse

MESSAGE =

The custom error message for this error.

'Invalid string format for creating a Decimal128 object.'

Instance Method Summary collapse

Instance Method Details

#messageString

Get the custom error message for the exception.

Examples:

Get the message.

error.message

Returns:

  • (String)

    The error message.



20
21
22
# File 'lib/bson/error/invalid_decimal128_string.rb', line 20

def message
  MESSAGE
end