Transmog v0.1.1 Transmog.InvalidKeyPairsError exception View Source

Link to this section Summary

Functions

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

new/2 raises an error with a custom field and index 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.InvalidKeyPairsError.new(nil)
** (Transmog.InvalidKeyPairsError) key pairs are not valid (nil)
Link to this function

new(field, index)

View Source
new(field :: term(), index :: non_neg_integer()) :: no_return()

new/2 raises an error with a custom field and index added to the error message.

Examples

iex> Transmog.InvalidKeyPairsError.new(nil, 1)
** (Transmog.InvalidKeyPairsError) key pairs are not valid (nil, index 1)