class Moped::Errors::InvalidObjectId

Raised when providing an invalid string from an object id.

Public Class Methods

new(string) click to toggle source

Create the new error.

@example Create the new error.

InvalidObjectId.new("test")

@param [ String ] string The provided id.

@since 1.0.0

Calls superclass method
# File lib/moped/errors.rb, line 28
def initialize(string)
  super("'#{string}' is not a valid object id.")
end