Transmog v0.1.1 Transmog.InvalidKeyPathError exception View Source

Link to this section Summary

Functions

new/1 raises an error with a custom field added to the error message.

Link to this section Functions

Link to this function

new(field)

View Source
new(field :: term()) :: no_return()

new/1 raises an error with a custom field added to the error message.

Examples

iex> Transmog.InvalidKeyPathError.new(nil)
** (Transmog.InvalidKeyPathError) key path is not valid (nil)