Exception: Moped::Errors::InvalidObjectId

Inherits:
StandardError
  • Object
show all
Defined in:
lib/moped/errors.rb

Overview

Raised when providing an invalid string from an object id.

Instance Method Summary collapse

Constructor Details

#initialize(string) ⇒ InvalidObjectId

Create the new error.

Examples:

Create the new error.

InvalidObjectId.new("test")

Parameters:

  • string (String)

    The provided id.

Since:

  • 1.0.0



25
26
27
# File 'lib/moped/errors.rb', line 25

def initialize(string)
  super("'#{string}' is not a valid object id.")
end