Exception: CouchDB::UndefinedProperty
- Inherits:
-
PropertyError
- Object
- RuntimeError
- Error
- PropertyError
- CouchDB::UndefinedProperty
- Defined in:
- lib/couchdb/errors.rb
Instance Attribute Summary
Attributes inherited from PropertyError
Instance Method Summary collapse
-
#initialize(name) ⇒ UndefinedProperty
constructor
A new instance of UndefinedProperty.
- #to_hash ⇒ Object
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_hash ⇒ Object
25 26 27 |
# File 'lib/couchdb/errors.rb', line 25 def to_hash {:property => name, :error => 'undefined'} end |