Xema.CastError exception (hl7 v1.0.0)

Raised when a cast fails.

Summary

Functions

Formats the error map to an error message.

Types

@type t() :: %Xema.CastError{
  __exception__: term(),
  error: struct() | nil,
  key: String.t() | atom() | nil,
  message: String.t() | nil,
  path: [atom() | integer() | String.t()] | nil,
  required: [atom()] | nil,
  to: atom() | list() | nil,
  value: term() | nil
}

Functions

Link to this function

format_error(error)

@spec format_error(t()) :: String.t()

Formats the error map to an error message.