Transmog v0.1.0 Transmog.InvalidKeyPairsError exception View Source
Link to this section Summary
Link to this section Functions
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 Sourcenew(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)