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

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>IR__Exceptions (infer.IR__Exceptions)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.0"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> <a href="../index.html">infer</a> &#x00BB; IR__Exceptions</nav><h1>Module <code>IR__Exceptions</code></h1></header><aside><p>Functions for logging and printing exceptions</p></aside><dl><dt class="spec type" id="type-visibility"><a href="#type-visibility" class="anchor"></a><code><span class="keyword">type</span> visibility</code><code> = </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>| </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>| </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>| </code><code><span class="constructor">Exn_system</span></code></td><td class="doc"><p>never add to error log</p></td></tr></table></dt><dd><p>visibility of the exception</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-compare_visibility"><a href="#val-compare_visibility" class="anchor"></a><code><span class="keyword">val</span> compare_visibility : <a href="index.html#type-visibility">visibility</a> <span>&#45;&gt;</span> <a href="index.html#type-visibility">visibility</a> <span>&#45;&gt;</span> int</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-equal_visibility"><a href="#val-equal_visibility" class="anchor"></a><code><span class="keyword">val</span> equal_visibility : <a href="index.html#type-visibility">visibility</a> <span>&#45;&gt;</span> <a href="index.html#type-visibility">visibility</a> <span>&#45;&gt;</span> bool</code></dt></dl><dl><dt class="spec type" id="type-severity"><a href="#type-severity" class="anchor"></a><code><span class="keyword">type</span> severity</code><code> = </code><table class="variant"><tr id="type-severity.Like" class="anchored"><td class="def constructor"><a href="#type-severity.Like" class="anchor"></a><code>| </code><code><span class="constructor">Like</span></code></td></tr><tr id="type-severity.Info" class="anchored"><td class="def constructor"><a href="#type-severity.Info" class="anchor"></a><code>| </code><code><span class="constructor">Info</span></code></td></tr><tr id="type-severity.Advice" class="anchored"><td class="def constructor"><a href="#type-severity.Advice" class="anchor"></a><code>| </code><code><span class="constructor">Advice</span></code></td></tr><tr id="type-severity.Warning" class="anchored"><td class="def constructor"><a href="#type-severity.Warning" class="anchor"></a><code>| </code><code><span class="constructor">Warning</span></code></td></tr><tr id="type-severity.Error" class="anchored"><td class="def constructor"><a href="#type-severity.Error" class="anchor"></a><code>| </code><code><span class="constructor">Error</span></code></td></tr></table></dt><dd><p>severity of the report</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-compare_severity"><a href="#val-compare_severity" class="anchor"></a><code><span class="keyword">val</span> compare_severity : <a href="index.html#type-severity">severity</a> <span>&#45;&gt;</span> <a href="index.html#type-severity">severity</a> <span>&#45;&gt;</span> int</code></dt></dl></div></div></div><dl><