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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<!DOCTYPE html>
<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>Die (infer.IBase.Die)</title><linkrel="stylesheet"href="../../../odoc.css"/><metacharset="utf-8"/><metaname="generator"content="odoc 1.5.1"/><metaname="viewport"content="width=device-width,initial-scale=1.0"/><scriptsrc="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><divclass="content"><header><nav><ahref="../index.html">Up</a>–<ahref="../../index.html">infer</a>»<ahref="../index.html">IBase</a>» Die</nav><h1>Module <code>IBase.Die</code></h1></header><dl><dtclass="spec exception"id="exception-InferExternalError"><ahref="#exception-InferExternalError"class="anchor"></a><code><spanclass="keyword">exception</span></code><code><spanclass="exception">InferExternalError</span><spanclass="keyword">of</span> string</code></dt><dtclass="spec exception"id="exception-InferInternalError"><ahref="#exception-InferInternalError"class="anchor"></a><code><spanclass="keyword">exception</span></code><code><spanclass="exception">InferInternalError</span><spanclass="keyword">of</span> string</code></dt><dtclass="spec exception"id="exception-InferUserError"><ahref="#exception-InferUserError"class="anchor"></a><code><spanclass="keyword">exception</span></code><code><spanclass="exception">InferUserError</span><spanclass="keyword">of</span> string</code></dt><dtclass="spec exception"id="exception-InferExit"><ahref="#exception-InferExit"class="anchor"></a><code><spanclass="keyword">exception</span></code><code><spanclass="exception">InferExit</span><spanclass="keyword">of</span> int</code></dt><dd><p>This can be used to avoid scattering exit invocations all over the codebase</p></dd></dl><dl><dtclass="spec type"id="type-error"><ahref="#type-error"class="anchor"></a><code><spanclass="keyword">type</span> error</code><code> = </code><tableclass="variant"><trid="type-error.ExternalError"class="anchored"><tdclass="def constructor"><ahref="#type-error.ExternalError"class="anchor"></a><code>| </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>| </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>| </code><code><spanclass="constructor">UserError</span></code></td></tr></table></dt><dd><p>kind of error for <code>die</code>, with similar semantics as <code>Logging.{external,internal,user}_error</code></p></dd></dl><dl><dtclass="spec value"id="val-exit"><ahref="#val-exit"class="anchor"></a><code><spanclass="keyword">val</span> exit : int <span>-></span><spanclass="type-var">'a</span></code></dt><dtclass="spec value"id="val-exit_code_of_exception"><ahref="#val-exit_code_of_exception"class="anchor"></a><code><spanclass="keyword">val</span> exit_code_of_exception : <ahref="../../IStdlib/index.html#module-IStd">IStdlib.IStd</a>.Exn.t <span>-></span> int</code></dt><dtclass="spec value"id="val-set_log_uncaught_exception_callback"><ahref="#val-set_log_uncaught_exception_callback"class="anchor"></a><code><spanclass="keyword">val</span> set_log_uncaught_exception_callback : <span>(exn <span>-></span><span>exitcode:int</span><span>-></span> unit)</span><span>-></span> unit</code></dt><dtclass="spec value"id="val-log_uncaught_exception"><ahref="#val-log_uncaught_exception"class="anchor"></a><code><spanclass="keyword">val</span> log_uncaught_exception : exn <span>-></span><span>exitcode:int</span><span>-></span> unit</code></dt><dtclass="spec value"id="val-die"><ahref="#val-die"class="anchor"></a><code><spanclass="keyword">val</span> die : <ahref="index.html#type-error">error</a><span>-></span><span><span>(<spanclass="type-var">'a</span>,Stdlib.Format.formatter,unit,<spanclass="type-var">_</span>)</span><ahref="../../IStdlib/index.html#module-IStd">IStdlib.IStd</a>.format4</span><span>-></span><spanclass="type-var">'a</span></code></dt><dd><p>Raise the corresponding exception.</p></dd></dl><dl><dtclass="spec value"id="val-raise_error"><ahref="#val-raise_error"class="anchor"></a><code><spanclass="keyword">val</span> raise_error : <span>?⁠backtrace:<ahref="../../IStdlib/index.html#module-IStd">IStdlib.IStd</a>.Caml.Printexc.raw_backtrace</span><span>-></span><ahref="index.html#type-error">error</a><span>-></span><span>msg:string</span><span>-></span><spanclass="type-var">'a</span></code></dt></dl><dl><dtclass="spec type"id="type-style"><ahref="#type-style"class="anchor"></a><code><spanclass="keyword">type</span> style</code><code> = </code><tableclass="variant"><trid="type-style.Error"class="anchored"><tdclass="def constructor"><ahref="#type-style.Error"class="anchor"></a><code>| </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>| </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>| </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>| </code><code><spanclass="constructor">Warning</span></code></td></tr></table></dt></dl><dl><dtclass="spec value"id="val-term_styles_of_style"><ahref="#val-term_styles_of_style"class="anchor"></a><code><spanclass="keyword">val</span> term_styles_of_style : <ahref="index.html#type-style">style</a><span>-></span><span><ahref="../../IStdlib/IStd/index.html#module-ANSITerminal">IStdlib.IStd.ANSITerminal</a>.style list</span></code></dt></dl></div></body></html>