You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
6.9 KiB

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>InferBase__Die (InferBase.InferBase__Die)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><meta name="generator" content="doc-ock-html v1.0.0-1-g1fc9bf0"/></head><body><nav id="top"><a href="../index.html">Up</a> &mdash; <span class="package">package <a href="../index.html">InferBase</a></span></nav><header><h1><span class="keyword">Module</span> <span class="module-path">InferBase__Die</span></h1></header><div class="spec exception" id="exception-InferExternalError"><a href="#exception-InferExternalError" class="anchor"></a><div class="def exception"><code><span class="keyword">exception </span></code><code><span class="exception">InferExternalError</span><span class="keyword"> of </span>string</code></div><div class="doc"></div></div><div class="spec exception" id="exception-InferInternalError"><a href="#exception-InferInternalError" class="anchor"></a><div class="def exception"><code><span class="keyword">exception </span></code><code><span class="exception">InferInternalError</span><span class="keyword"> of </span>string</code></div><div class="doc"></div></div><div class="spec exception" id="exception-InferUserError"><a href="#exception-InferUserError" class="anchor"></a><div class="def exception"><code><span class="keyword">exception </span></code><code><span class="exception">InferUserError</span><span class="keyword"> of </span>string</code></div><div class="doc"></div></div><div class="spec exception" id="exception-InferExit"><a href="#exception-InferExit" class="anchor"></a><div class="def exception"><code><span class="keyword">exception </span></code><code><span class="exception">InferExit</span><span class="keyword"> of </span>int</code></div><div class="doc"><p>This can be used to avoid scattering exit invocations all over the codebase</p></div></div><div class="spec type" id="type-error"><a href="#type-error" class="anchor"></a><div class="def type"><code><span class="keyword">type </span>error</code><code></code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-error.ExternalError" class="anchored"><td class="def constructor"><a href="#type-error.ExternalError" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">ExternalError</span></code></td></tr><tr id="type-error.InternalError" class="anchored"><td class="def constructor"><a href="#type-error.InternalError" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">InternalError</span></code></td></tr><tr id="type-error.UserError" class="anchored"><td class="def constructor"><a href="#type-error.UserError" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">UserError</span></code></td></tr></table><code></code></div><div class="doc"><p>kind of error for <code class="code">die</code>, with similar semantics as <code class="code">Logging.{external,internal,user}_error</code></p></div></div><div class="spec val" id="val-exit"><a href="#val-exit" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>exit : int <span class="keyword">&#8209;&gt;</span> <span class="type-var">'a</span></code></div><div class="doc"></div></div><div class="spec val" id="val-exit_code_of_exception"><a href="#val-exit_code_of_exception" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>exit_code_of_exception : <a href="../../InferStdlib/InferStdlib/index.html#module-IStd">InferStdlib.IStd</a>.Exn.t <span class="keyword">&#8209;&gt;</span> int</code></div><div class="doc"></div></div><div class="spec val" id="val-set_log_uncaught_exception_callback"><a href="#val-set_log_uncaught_exception_callback" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>set_log_uncaught_exception_callback : (exn <span class="keyword">&#8209;&gt;</span> exitcode:int <span class="keyword">&#8209;&gt;</span> unit) <span c