GuardedStruct.Errors.Validation exception (GuardedStruct v0.1.0-beta.1)

Copy Markdown View Source

Single field-level validation error.

Summary

Functions

exception(msg)

@spec exception(opts :: Keyword.t()) :: %GuardedStruct.Errors.Validation{
  __exception__: true,
  action: term(),
  bread_crumbs: term(),
  child_errors: term(),
  class: term(),
  field: term(),
  hint: term(),
  message: term(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Create an Elixir.GuardedStruct.Errors.Validation without raising it.

Keys

  • :field
  • :action
  • :message
  • :hint
  • :child_errors