View Source JSV.ValidationError exception (jsv v0.3.0)

The data structure returned by JSV.validate/3 when validation fails.

Summary

Functions

Wraps the given JSV.Validator.Error list into an JSV.ValidationError exception.

Types

t()

@type t() :: %JSV.ValidationError{
  __exception__: true,
  errors: [JSV.Validator.Error.t()]
}

Functions

of(errors)

@spec of([JSV.Validator.Error.t()]) :: t()

Wraps the given JSV.Validator.Error list into an JSV.ValidationError exception.