Exception: StrokeDB::InvalidDocumentError
- Defined in:
- lib/strokedb/document.rb
Overview
Raised when Document#save! is called on an invalid document (for which doc.valid? returns false)
Instance Attribute Summary collapse
-
#document ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#initialize(document) ⇒ InvalidDocumentError
constructor
A new instance of InvalidDocumentError.
- #inspect ⇒ Object
- #message ⇒ Object
Constructor Details
#initialize(document) ⇒ InvalidDocumentError
Returns a new instance of InvalidDocumentError.
45 46 47 |
# File 'lib/strokedb/document.rb', line 45 def initialize(document) @document = document end |
Instance Attribute Details
#document ⇒ Object (readonly)
:nodoc:
43 44 45 |
# File 'lib/strokedb/document.rb', line 43 def document @document end |