OXC.Error exception (OXC v0.19.0)

Copy Markdown View Source

Raised by bang functions. errors holds OXC.Diagnostic.t/0 maps and the message lists them as file:line:column: message.

Summary

Functions

Return the value of {:ok, value} or raise for {:error, errors}.

Functions

unwrap!(arg)

@spec unwrap!({:ok, value} | {:error, [OXC.Diagnostic.t()]}) :: value
when value: term()

Return the value of {:ok, value} or raise for {:error, errors}.