Exception: CouchDB::PropertyError
- Defined in:
- lib/couchdb/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, msg = nil) ⇒ PropertyError
constructor
A new instance of PropertyError.
- #to_hash ⇒ Object
Constructor Details
#initialize(name, msg = nil) ⇒ PropertyError
Returns a new instance of PropertyError.
9 10 11 12 13 |
# File 'lib/couchdb/errors.rb', line 9 def initialize(name, msg = nil) @name = name msg ||= "Property error: #{name}" super msg end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/couchdb/errors.rb', line 7 def name @name end |
Instance Method Details
#to_hash ⇒ Object
15 16 17 |
# File 'lib/couchdb/errors.rb', line 15 def to_hash {:property => name, :error => 'error'} end |