JSV.BuildError exception (jsv v0.10.0)

View Source

A simple wrapper for errors returned from JSV.build/2.

Summary

Functions

Wraps the given term as the reason in a JSV.BuildError struct.

Functions

of(reason, action, build_path \\ nil)

@spec of(term(), term(), build_path :: nil | String.t()) :: Exception.t()

Wraps the given term as the reason in a JSV.BuildError struct.

The action should be a {module, function, [arg1, arg2, ..., argN]} tuple or a mfa tuple whenever possible.