Grax.ValidationError exception (Grax v0.6.0)

View Source

Raised when the validation of a Grax fails.

Summary

Types

t()

@type t() :: %Grax.ValidationError{
  __exception__: true,
  context: any(),
  errors: list()
}

Functions

add_error(validation_error, property, error)

message(validation_error)

Callback implementation for Exception.message/1.