Ucum.Error exception (ucum v0.7.0)

Copy Markdown View Source

What a ! function raises: the reason its value twin answers in {:error, reason}, and that reason in Ucum.format_error/1's words (spec/00 §3).

Summary

Types

t()

@type t() :: %Ucum.Error{__exception__: term(), message: String.t(), reason: term()}