Exception: CouchDB::MissingProperty

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) ⇒ MissingProperty

Returns a new instance of MissingProperty.



31
32
33
# File 'lib/couchdb/errors.rb', line 31

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

Instance Method Details

#to_hashObject



35
36
37
# File 'lib/couchdb/errors.rb', line 35

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