MnemosyneZvex.Errors (mnemosyne_zvex v0.1.0)

Copy Markdown

Translates Zvex.Error.* and DETS error tuples into the Mnemosyne.Errors.Framework.* hierarchy used by Mnemosyne.GraphBackend callbacks.

Summary

Functions

Translates a Zvex error struct or a DETS error reason into a Mnemosyne error.

Functions

translate(e, op)

@spec translate(term(), atom()) :: Mnemosyne.Errors.error()

Translates a Zvex error struct or a DETS error reason into a Mnemosyne error.

Operation is a free-form atom describing the failing callback (:apply_changeset, :get_node, ...).