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