Exception: Ripple::NoRootDocument

Inherits:
StandardError
  • Object
show all
Includes:
Translation
Defined in:
ripple/lib/ripple/embedded_document/persistence.rb

Overview

Exception raised when save is called on an EmbeddedDocument that is not attached to a root Document.

Instance Method Summary (collapse)

Methods included from Translation

#i18n_scope

Methods included from Riak::Util::Translation

#i18n_scope, #t

Constructor Details

- (NoRootDocument) initialize(doc, method)

A new instance of NoRootDocument



23
24
25
# File 'ripple/lib/ripple/embedded_document/persistence.rb', line 23

def initialize(doc, method)
  super(t("no_root_document", :doc => doc.inspect, :method => method))
end