Method: Moped::Errors::InvalidObjectId#initialize

Defined in:
lib/moped/errors.rb

#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



40
41
42
# File 'lib/moped/errors.rb', line 40

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