edantic v0.1.1 Edantic.CastError View Source

Link to this section Summary

Link to this section Types

Link to this type

t()

View Source
t() :: %Edantic.CastError{
  data: term(),
  message: term(),
  previous_error: term(),
  type: term()
}

Link to this section Functions

Link to this function

format(error)

View Source
format(t()) :: String.t()
Link to this function

format_type(cast_error)

View Source
format_type(t()) :: String.t()
Link to this function

new(message, type, data, previous_error \\ nil)

View Source
new(String.t(), term(), term(), t() | nil) :: t()