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
40 KiB

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>InferIR__Exceptions (InferIR.InferIR__Exceptions)</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">InferIR</a></span></nav><header><h1><span class="keyword">Module</span> <span class="module-path">InferIR__Exceptions</span></h1></header><p>Functions for logging and printing exceptions</p><div class="spec type" id="type-visibility"><a href="#type-visibility" class="anchor"></a><div class="def type"><code><span class="keyword">type </span>visibility</code><code></code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-visibility.Exn_user" class="anchored"><td class="def constructor"><a href="#type-visibility.Exn_user" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Exn_user</span></code></td><td class="doc"><p>(** always add to error log *)</p></td></tr><tr id="type-visibility.Exn_developer" class="anchored"><td class="def constructor"><a href="#type-visibility.Exn_developer" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Exn_developer</span></code></td><td class="doc"><p>(** only add to error log in developer mode *)</p></td></tr><tr id="type-visibility.Exn_system" class="anchored"><td class="def constructor"><a href="#type-visibility.Exn_system" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Exn_system</span></code></td><td class="doc"><p>(** never add to error log *)</p></td></tr></table><code></code></div><div class="doc"><p>visibility of the exception</p></div></div><div class="spec include"><div class="doc"></div><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">sig</span> ... <span class="keyword">end</span></code></span></summary><div class="spec val" id="val-compare_visibility"><a href="#val-compare_visibility" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>compare_visibility : <a href="index.html#type-visibility">visibility</a> <span class="keyword">&#8209;&gt;</span> <a href="index.html#type-visibility">visibility</a> <span class="keyword">&#8209;&gt;</span> int</code></div><div class="doc"></div></div></details></div><div class="spec val" id="val-equal_visibility"><a href="#val-equal_visibility" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>equal_visibility : <a href="index.html#type-visibility">visibility</a> <span class="keyword">&#8209;&gt;</span> <a href="index.html#type-visibility">visibility</a> <span class="keyword">&#8209;&gt;</span> bool</code></div><div class="doc"></div></div><div class="spec val" id="val-string_of_visibility"><a href="#val-string_of_visibility" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>string_of_visibility : <a href="index.html#type-visibility">visibility</a> <span class="keyword">&#8209;&gt;</span> string</code></div><div class="doc"></div></div><div class="spec type" id="type-severity"><a href="#type-severity" class="anchor"></a><div class="def type"><code><span class="keyword">type </span>severity</code><code></code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-severity.High" class="anchored"><td class="def constructor"><a href="#type-severity.High" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">High</span></code></td><td class="doc"><p>(** high severity bug *)</p></td></tr><tr id="type-severity.Medium" class="anchored"><td class="def constructor"><a href="#type-severity.Medium" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Medium</span></code></td><td class="doc"><p>(** medium severity