Exception: CouchDB::UndefinedProperty

Inherits:
PropertyError show all
Defined in:
lib/couchdb/errors.rb

Instance Attribute Summary

Attributes inherited from PropertyError

#name

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ UndefinedProperty

Returns a new instance of UndefinedProperty.



21
22
23
# File 'lib/couchdb/errors.rb', line 21

def initialize(name)
  super name, "Property #{name.inspect} is not defined."
end

Instance Method Details

#to_hashObject



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

def to_hash
  {:property => name, :error => 'undefined'}
end