spec v0.1.3 Spec.Mismatch exception

Summary

Types

t()
t() :: %Spec.Mismatch{__exception__: term, at: term, expr: term, in: term, reason: term, subject: term}

Functions

error(opts)
error(opts :: keyword) :: {:error, mismatch :: t}
error_in(mismatch, opts)
exception(args)
exception(Keyword.t) :: Exception.t

Callback implementation for Exception.exception/1.

message(mismatch)

Callback implementation for Exception.message/1.

with_root(mismatch, new_subject)