This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.
<!DOCTYPE html>
<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>InferBase__Die (InferBase.InferBase__Die)</title><linkrel="stylesheet"href="../../odoc.css"/><metacharset="utf-8"/><metaname="viewport"content="width=device-width,initial-scale=1.0"/><metaname="generator"content="doc-ock-html v1.0.0-1-g1fc9bf0"/></head><body><navid="top"><ahref="../index.html">Up</a>—<spanclass="package">package <ahref="../index.html">InferBase</a></span></nav><header><h1><spanclass="keyword">Module</span><spanclass="module-path">InferBase__Die</span></h1></header><divclass="spec exception"id="exception-InferExternalError"><ahref="#exception-InferExternalError"class="anchor"></a><divclass="def exception"><code><spanclass="keyword">exception </span></code><code><spanclass="exception">InferExternalError</span><spanclass="keyword"> of </span>string</code></div><divclass="doc"></div></div><divclass="spec exception"id="exception-InferInternalError"><ahref="#exception-InferInternalError"class="anchor"></a><divclass="def exception"><code><spanclass="keyword">exception </span></code><code><spanclass="exception">InferInternalError</span><spanclass="keyword"> of </span>string</code></div><divclass="doc"></div></div><divclass="spec exception"id="exception-InferUserError"><ahref="#exception-InferUserError"class="anchor"></a><divclass="def exception"><code><spanclass="keyword">exception </span></code><code><spanclass="exception">InferUserError</span><spanclass="keyword"> of </span>string</code></div><divclass="doc"></div></div><divclass="spec exception"id="exception-InferExit"><ahref="#exception-InferExit"class="anchor"></a><divclass="def exception"><code><spanclass="keyword">exception </span></code><code><spanclass="exception">InferExit</span><spanclass="keyword"> of </span>int</code></div><divclass="doc"><p>This can be used to avoid scattering exit invocations all over the codebase</p></div></div><divclass="spec type"id="type-error"><ahref="#type-error"class="anchor"></a><divclass="def type"><code><spanclass="keyword">type </span>error</code><code></code><code><spanclass="keyword"> = </span></code><tableclass="variant"><trid="type-error.ExternalError"class="anchored"><tdclass="def constructor"><ahref="#type-error.ExternalError"class="anchor"></a><code><spanclass="keyword">| </span></code><code><spanclass="constructor">ExternalError</span></code></td></tr><trid="type-error.InternalError"class="anchored"><tdclass="def constructor"><ahref="#type-error.InternalError"class="anchor"></a><code><spanclass="keyword">| </span></code><code><spanclass="constructor">InternalError</span></code></td></tr><trid="type-error.UserError"class="anchored"><tdclass="def constructor"><ahref="#type-error.UserError"class="anchor"></a><code><spanclass="keyword">| </span></code><code><spanclass="constructor">UserError</span></code></td></tr></table><code></code></div><divclass="doc"><p>kind of error for <codeclass="code">die</code>, with similar semantics as <codeclass="code">Logging.{external,internal,user}_error</code></p></div></div><divclass="spec val"id="val-exit"><ahref="#val-exit"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>exit : int <spanclass="keyword">‑></span><spanclass="type-var">'a</span></code></div><divclass="doc"></div></div><divclass="spec val"id="val-exit_code_of_exception"><ahref="#val-exit_code_of_exception"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>exit_code_of_exception : <ahref="../../InferStdlib/InferStdlib/index.html#module-IStd">InferStdlib.IStd</a>.Exn.t <spanclass="keyword">‑></span> int</code></div><divclass="doc"></div></div><divclass="spec val"id="val-set_log_uncaught_exception_callback"><ahref="#val-set_log_uncaught_exception_callback"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>set_log_uncaught_exception_callback : (exn <spanclass="keyword">‑></span> exitcode:int <spanclass="keyword">‑></span> unit) <spanclass="keyword">‑></span> unit</code></div><divclass="doc"></div></div><divclass="spec val"id="val-log_uncaught_exception"><ahref="#val-log_uncaught_exception"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>log_uncaught_exception : exn <spanclass="keyword">‑></span> exitcode:int <spanclass="keyword">‑></span> unit</code></div><divclass="doc"></div></div><divclass="spec val"id="val-die"><ahref="#val-die"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>die : <ahref="index.html#type-error">error</a><spanclass="keyword">‑></span> (<spanclass="type-var">'a</span>,Format.formatter,unit,<spanclass="type-var">_</span>)<ahref="../../InferStdlib/InferStdlib/index.html#module-IStd">InferStdlib.IStd</a>.format4 <spanclass="keyword">‑></span><spanclass="type-var">'a</span></code></div><divclass="doc"><p>Raise the corresponding exception.</p></div></div><divclass="spec val"id="val-raise_error"><ahref="#val-raise_error"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>raise_error : <ahref="index.html#type-error">error</a><spanclass="keyword">‑></span> msg:string <spanclass="keyword">‑></span><spanclass="type-var">'a</span></code></div><divclass="doc"></div></div><divclass="spec type"id="type-style"><ahref="#type-style"class="anchor"></a><divclass="def type"><code><spanclass="keyword">type </span>style</code><code></code><code><spanclass="keyword"> = </span></code><tableclass="variant"><trid="type-style.Error"class="anchored"><tdclass="def constructor"><ahref="#type-style.Error"class="anchor"></a><code><spanclass="keyword">| </span></code><code><spanclass="constructor">Error</span></code></td></tr><trid="type-style.Fatal"class="anchored"><tdclass="def constructor"><ahref="#type-style.Fatal"class="anchor"></a><code><spanclass="keyword">| </span></code><code><spanclass="constructor">Fatal</span></code></td></tr><trid="type-style.Normal"class="anchored"><tdclass="def constructor"><ahref="#type-style.Normal"class="anchor"></a><code><spanclass="keyword">| </span></code><code><spanclass="constructor">Normal</span></code></td></tr><trid="type-style.Warning"class="anchored"><tdclass="def constructor"><ahref="#type-style.Warning"class="anchor"></a><code><spanclass="keyword">| </span></code><code><spanclass="constructor">Warning</span></code></td></tr></table><code></code></div><divclass="doc"></div></div><divclass="spec val"id="val-term_styles_of_style"><ahref="#val-term_styles_of_style"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>term_styles_of_style : <ahref="index.html#type-style">style</a><spanclass="keyword">‑></span><ahref="../../InferStdlib/InferStdlib/IStd/index.html#module-ANSITerminal">InferStdlib.IStd.ANSITerminal</a>.style list</code></div><divclass="doc"></div></div></body></html>