Parent

Methods

Class/Module Index [+]

Quicksearch

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

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.