Exception: Riagent::InvalidDocumentError

Inherits:
RiagentError
  • Object
show all
Defined in:
lib/riagent/errors.rb

Overview

Raised by save! when a document does not pass validation

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#documentObject (readonly)

:nodoc:



28
29
30
# File 'lib/riagent/errors.rb', line 28

def document
  @document
end