Exception: Riagent::InvalidDocumentError
- Inherits:
-
RiagentError
- Object
- StandardError
- RiagentError
- Riagent::InvalidDocumentError
- Defined in:
- lib/riagent/errors.rb
Overview
Raised by save! when a document does not pass validation
Instance Attribute Summary collapse
-
#document ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#initialize(document) ⇒ InvalidDocumentError
constructor
:nodoc:.
Constructor Details
#initialize(document) ⇒ InvalidDocumentError
:nodoc:
29 30 31 |
# File 'lib/riagent/errors.rb', line 29 def initialize(document) # :nodoc: @document = document end |
Instance Attribute Details
#document ⇒ Object (readonly)
:nodoc:
28 29 30 |
# File 'lib/riagent/errors.rb', line 28 def document @document end |