Definitively.Spec.Error (definitively v0.3.0)

Copy Markdown

Structured error from spec load or validation.

Summary

Functions

Builds a structured spec error with optional source path.

Types

t()

@type t() :: %Definitively.Spec.Error{
  message: String.t(),
  path: String.t() | nil,
  reason: atom()
}

Functions

new(reason, message, path \\ nil)

@spec new(atom(), String.t(), String.t() | nil) :: t()

Builds a structured spec error with optional source path.