123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506 |
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <!-- This file is generated by Nim. -->
- <html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en" data-theme="auto">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>system/exceptions</title>
- <!-- Google fonts -->
- <link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
- <link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
- <!-- Favicon -->
- <link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
- <link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
- <!-- CSS -->
- <link rel="stylesheet" type="text/css" href="nimdoc.out.css?v=2.3.1">
- <!-- JS -->
- <script type="text/javascript" src="dochack.js?v=2.3.1"></script>
- </head>
- <body>
- <div class="document" id="documentId">
- <div class="container">
- <h1 class="title">system/exceptions</h1>
- <div class="row">
- <div class="three columns">
- <div class="theme-select-wrapper">
- <label for="theme-select">Theme: </label>
- <select id="theme-select" onchange="setTheme(this.value)">
- <option value="auto">🌗 Match OS</option>
- <option value="dark">🌑 Dark</option>
- <option value="light">🌕 Light</option>
- </select>
- </div>
- <div id="global-links">
- <ul class="simple-boot">
- <li><a href="manual.html">Manual</a></li>
- <li><a href="lib.html">Standard library</a></li>
- <li> <a id="indexLink" href="theindex.html">Index</a></li>
- <li><a href="compiler/theindex.html">Compiler docs</a></li>
- <li><a href="https://nim-lang.github.io/fusion/theindex.html">Fusion docs</a></li>
- <li><a href="https://nim-lang.github.io/Nim/">devel</a>, <a href="https://nim-lang.org/documentation.html">stable</a></li>
- </ul>
- </div>
- <div id="searchInputDiv">
- Search: <input type="search" id="searchInput"
- oninput="search()" />
- </div>
-
- <ul class="simple simple-toc" id="toc-list">
- <li>
- <details open>
- <summary><a class="reference reference-toplevel" href="#7" id="57">Types</a></summary>
- <ul class="simple simple-toc-section">
- <li><a class="reference" href="#AccessViolationDefect" title="AccessViolationDefect = object of Defect">AccessViolationDefect</a></li>
- <li><a class="reference" href="#ArithmeticDefect" title="ArithmeticDefect = object of Defect">ArithmeticDefect</a></li>
- <li><a class="reference" href="#AssertionDefect" title="AssertionDefect = object of Defect">AssertionDefect</a></li>
- <li><a class="reference" href="#DeadThreadDefect" title="DeadThreadDefect = object of Defect">DeadThreadDefect</a></li>
- <li><a class="reference" href="#DivByZeroDefect" title="DivByZeroDefect = object of ArithmeticDefect">DivByZeroDefect</a></li>
- <li><a class="reference" href="#EOFError" title="EOFError = object of IOError">EOFError</a></li>
- <li><a class="reference" href="#ExecIOEffect" title="ExecIOEffect = object of IOEffect">ExecIOEffect</a></li>
- <li><a class="reference" href="#FieldDefect" title="FieldDefect = object of Defect">FieldDefect</a></li>
- <li><a class="reference" href="#FloatDivByZeroDefect" title="FloatDivByZeroDefect = object of FloatingPointDefect">FloatDivByZeroDefect</a></li>
- <li><a class="reference" href="#FloatInexactDefect" title="FloatInexactDefect = object of FloatingPointDefect">FloatInexactDefect</a></li>
- <li><a class="reference" href="#FloatingPointDefect" title="FloatingPointDefect = object of Defect">FloatingPointDefect</a></li>
- <li><a class="reference" href="#FloatInvalidOpDefect" title="FloatInvalidOpDefect = object of FloatingPointDefect">FloatInvalidOpDefect</a></li>
- <li><a class="reference" href="#FloatOverflowDefect" title="FloatOverflowDefect = object of FloatingPointDefect">FloatOverflowDefect</a></li>
- <li><a class="reference" href="#FloatUnderflowDefect" title="FloatUnderflowDefect = object of FloatingPointDefect">FloatUnderflowDefect</a></li>
- <li><a class="reference" href="#IndexDefect" title="IndexDefect = object of Defect">IndexDefect</a></li>
- <li><a class="reference" href="#IOEffect" title="IOEffect = object of RootEffect">IOEffect</a></li>
- <li><a class="reference" href="#IOError" title="IOError = object of CatchableError">IOError</a></li>
- <li><a class="reference" href="#KeyError" title="KeyError = object of ValueError">KeyError</a></li>
- <li><a class="reference" href="#LibraryError" title="LibraryError = object of OSError">LibraryError</a></li>
- <li><a class="reference" href="#NilAccessDefect" title="NilAccessDefect = object of Defect">NilAccessDefect</a></li>
- <li><a class="reference" href="#ObjectAssignmentDefect" title="ObjectAssignmentDefect = object of Defect">ObjectAssignmentDefect</a></li>
- <li><a class="reference" href="#ObjectConversionDefect" title="ObjectConversionDefect = object of Defect">ObjectConversionDefect</a></li>
- <li><a class="reference" href="#OSError" title="OSError = object of CatchableError
- errorCode*: int32 ## OS-defined error code describing this error.">OSError</a></li>
- <li><a class="reference" href="#OutOfMemDefect" title="OutOfMemDefect = object of Defect">OutOfMemDefect</a></li>
- <li><a class="reference" href="#OverflowDefect" title="OverflowDefect = object of ArithmeticDefect">OverflowDefect</a></li>
- <li><a class="reference" href="#RangeDefect" title="RangeDefect = object of Defect">RangeDefect</a></li>
- <li><a class="reference" href="#ReadIOEffect" title="ReadIOEffect = object of IOEffect">ReadIOEffect</a></li>
- <li><a class="reference" href="#ReraiseDefect" title="ReraiseDefect = object of Defect">ReraiseDefect</a></li>
- <li><a class="reference" href="#ResourceExhaustedError" title="ResourceExhaustedError = object of CatchableError">ResourceExhaustedError</a></li>
- <li><a class="reference" href="#StackOverflowDefect" title="StackOverflowDefect = object of Defect">StackOverflowDefect</a></li>
- <li><a class="reference" href="#TimeEffect" title="TimeEffect = object of RootEffect">TimeEffect</a></li>
- <li><a class="reference" href="#ValueError" title="ValueError = object of CatchableError">ValueError</a></li>
- <li><a class="reference" href="#WriteIOEffect" title="WriteIOEffect = object of IOEffect">WriteIOEffect</a></li>
- </ul>
- </details>
- </li>
- </ul>
- </div>
- <div class="nine columns" id="content">
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L1" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L1" class="link-seesrc" target="_blank" >Edit</a>
- <div id="tocRoot"></div>
-
- <p class="module-desc">Exception and effect types used in Nim code.</p>
- <div class="section" id="7">
- <h1><a class="toc-backref" href="#7">Types</a></h1>
- <dl class="item">
- <div id="AccessViolationDefect">
- <dt><pre><a href="exceptions.html#AccessViolationDefect"><span class="Identifier">AccessViolationDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="system.html#Defect"><span class="Identifier">Defect</span></a></pre></dt>
- <dd>
-
-
- Raised for invalid memory access errors
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L32" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L32" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="ArithmeticDefect">
- <dt><pre><a href="exceptions.html#ArithmeticDefect"><span class="Identifier">ArithmeticDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="system.html#Defect"><span class="Identifier">Defect</span></a></pre></dt>
- <dd>
-
-
- Raised if any kind of arithmetic error occurred.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L22" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L22" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="AssertionDefect">
- <dt><pre><a href="exceptions.html#AssertionDefect"><span class="Identifier">AssertionDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="system.html#Defect"><span class="Identifier">Defect</span></a></pre></dt>
- <dd>
-
- <p>
- Raised when assertion is proved wrong.</p>
- <p>Usually the result of using the <a class="reference external" href="assertions.html#assert.t,untyped,string">assert() template</a>.</p>
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L34" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L34" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="DeadThreadDefect">
- <dt><pre><a href="exceptions.html#DeadThreadDefect"><span class="Identifier">DeadThreadDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="system.html#Defect"><span class="Identifier">Defect</span></a></pre></dt>
- <dd>
-
-
- Raised if it is attempted to send a message to a dead thread.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L92" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L92" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="DivByZeroDefect">
- <dt><pre><a href="exceptions.html#DivByZeroDefect"><span class="Identifier">DivByZeroDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="exceptions.html#ArithmeticDefect"><span class="Identifier">ArithmeticDefect</span></a></pre></dt>
- <dd>
-
-
- Raised for runtime integer divide-by-zero errors.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L24" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L24" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="EOFError">
- <dt><pre><a href="exceptions.html#EOFError"><span class="Identifier">EOFError</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="exceptions.html#IOError"><span class="Identifier">IOError</span></a></pre></dt>
- <dd>
-
-
- Raised if an IO "end of file" error occurred.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L13" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L13" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="ExecIOEffect">
- <dt><pre><a href="exceptions.html#ExecIOEffect"><span class="Identifier">ExecIOEffect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="exceptions.html#IOEffect"><span class="Identifier">IOEffect</span></a></pre></dt>
- <dd>
-
- Effect describing an executing IO operation.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L8" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L8" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="FieldDefect">
- <dt><pre><a href="exceptions.html#FieldDefect"><span class="Identifier">FieldDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="system.html#Defect"><span class="Identifier">Defect</span></a></pre></dt>
- <dd>
-
-
- Raised if a record field is not accessible because its discriminant's value does not fit.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L52" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L52" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="FloatDivByZeroDefect">
- <dt><pre><a href="exceptions.html#FloatDivByZeroDefect"><span class="Identifier">FloatDivByZeroDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="exceptions.html#FloatingPointDefect"><span class="Identifier">FloatingPointDefect</span></a></pre></dt>
- <dd>
-
- <p>
- Raised by division by zero.</p>
- <p>Divisor is zero and dividend is a finite nonzero number.</p>
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L72" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L72" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="FloatInexactDefect">
- <dt><pre><a href="exceptions.html#FloatInexactDefect"><span class="Identifier">FloatInexactDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="exceptions.html#FloatingPointDefect"><span class="Identifier">FloatingPointDefect</span></a></pre></dt>
- <dd>
-
- <p>
- Raised for inexact results.</p>
- <p>The operation produced a result that cannot be represented with infinite precision -- for example: <tt class="docutils literal"><span class="pre"><span class="FloatNumber">2.0</span> <span class="Operator">/</span> <span class="FloatNumber">3.0</span><span class="Punctuation">,</span> <span class="Identifier">log</span><span class="Punctuation">(</span><span class="FloatNumber">1.1</span><span class="Punctuation">)</span></span></tt></p>
- <p><strong>Note</strong>: Nim currently does not detect these!</p>
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L85" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L85" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="FloatingPointDefect">
- <dt><pre><a href="exceptions.html#FloatingPointDefect"><span class="Identifier">FloatingPointDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="system.html#Defect"><span class="Identifier">Defect</span></a></pre></dt>
- <dd>
-
-
- Base class for floating point exceptions.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L66" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L66" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="FloatInvalidOpDefect">
- <dt><pre><a href="exceptions.html#FloatInvalidOpDefect"><span class="Identifier">FloatInvalidOpDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="exceptions.html#FloatingPointDefect"><span class="Identifier">FloatingPointDefect</span></a></pre></dt>
- <dd>
-
- <p>
- Raised by invalid operations according to IEEE.</p>
- <p>Raised by <tt class="docutils literal"><span class="pre"><span class="FloatNumber">0.0</span><span class="Operator">/</span><span class="FloatNumber">0.0</span></span></tt>, for example.</p>
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L68" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L68" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="FloatOverflowDefect">
- <dt><pre><a href="exceptions.html#FloatOverflowDefect"><span class="Identifier">FloatOverflowDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="exceptions.html#FloatingPointDefect"><span class="Identifier">FloatingPointDefect</span></a></pre></dt>
- <dd>
-
- <p>
- Raised for overflows.</p>
- <p>The operation produced a result that exceeds the range of the exponent.</p>
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L76" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L76" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="FloatUnderflowDefect">
- <dt><pre><a href="exceptions.html#FloatUnderflowDefect"><span class="Identifier">FloatUnderflowDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="exceptions.html#FloatingPointDefect"><span class="Identifier">FloatingPointDefect</span></a></pre></dt>
- <dd>
-
- <p>
- Raised for underflows.</p>
- <p>The operation produced a result that is too small to be represented as a normal number.</p>
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L80" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L80" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="IndexDefect">
- <dt><pre><a href="exceptions.html#IndexDefect"><span class="Identifier">IndexDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="system.html#Defect"><span class="Identifier">Defect</span></a></pre></dt>
- <dd>
-
-
- Raised if an array index is out of bounds.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L49" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L49" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="IOEffect">
- <dt><pre><a href="exceptions.html#IOEffect"><span class="Identifier">IOEffect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="system.html#RootEffect"><span class="Identifier">RootEffect</span></a></pre></dt>
- <dd>
-
- IO effect.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L5" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L5" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="IOError">
- <dt><pre><a href="exceptions.html#IOError"><span class="Identifier">IOError</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="system.html#CatchableError"><span class="Identifier">CatchableError</span></a></pre></dt>
- <dd>
-
-
- Raised if an IO error occurred.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L11" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L11" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="KeyError">
- <dt><pre><a href="exceptions.html#KeyError"><span class="Identifier">KeyError</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="exceptions.html#ValueError"><span class="Identifier">ValueError</span></a></pre></dt>
- <dd>
-
- <p>
- Raised if a key cannot be found in a table.</p>
- <p>Mostly used by the <a class="reference external" href="tables.html">tables</a> module, it can also be raised by other collection modules like <a class="reference external" href="sets.html">sets</a> or <a class="reference external" href="strtabs.html">strtabs</a>.</p>
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L41" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L41" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="LibraryError">
- <dt><pre><a href="exceptions.html#LibraryError"><span class="Identifier">LibraryError</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="exceptions.html#OSError"><span class="Identifier">OSError</span></a></pre></dt>
- <dd>
-
-
- Raised if a dynamic library could not be loaded.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L18" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L18" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="NilAccessDefect">
- <dt><pre><a href="exceptions.html#NilAccessDefect"><span class="Identifier">NilAccessDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="system.html#Defect"><span class="Identifier">Defect</span></a></pre></dt>
- <dd>
-
- <p>
- Raised on dereferences of <tt class="docutils literal"><span class="pre"><span class="Keyword">nil</span></span></tt> pointers.</p>
- <p>This is only raised if the <a class="reference external" href="segfaults.html">segfaults module</a> was imported!</p>
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L94" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L94" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="ObjectAssignmentDefect">
- <dt><pre><a href="exceptions.html#ObjectAssignmentDefect"><span class="Identifier">ObjectAssignmentDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="system.html#Defect"><span class="Identifier">Defect</span></a></pre></dt>
- <dd>
-
-
- Raised if an object gets assigned to its parent's object.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L61" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L61" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="ObjectConversionDefect">
- <dt><pre><a href="exceptions.html#ObjectConversionDefect"><span class="Identifier">ObjectConversionDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="system.html#Defect"><span class="Identifier">Defect</span></a></pre></dt>
- <dd>
-
-
- Raised if an object is converted to an incompatible object type. You can use <tt class="docutils literal"><span class="pre"><span class="Keyword">of</span></span></tt> operator to check if conversion will succeed.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L63" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L63" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="OSError">
- <dt><pre><a href="exceptions.html#OSError"><span class="Identifier">OSError</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="system.html#CatchableError"><span class="Identifier">CatchableError</span></a>
- <span class="Identifier">errorCode</span><span class="Operator">*</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a> <span class="Comment">## OS-defined error code describing this error.</span></pre></dt>
- <dd>
-
-
- Raised if an operating system service failed.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L15" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L15" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="OutOfMemDefect">
- <dt><pre><a href="exceptions.html#OutOfMemDefect"><span class="Identifier">OutOfMemDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="system.html#Defect"><span class="Identifier">Defect</span></a></pre></dt>
- <dd>
-
-
- Raised for unsuccessful attempts to allocate memory.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L47" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L47" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="OverflowDefect">
- <dt><pre><a href="exceptions.html#OverflowDefect"><span class="Identifier">OverflowDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="exceptions.html#ArithmeticDefect"><span class="Identifier">ArithmeticDefect</span></a></pre></dt>
- <dd>
-
- <p>
- Raised for runtime integer overflows.</p>
- <p>This happens for calculations whose results are too large to fit in the provided bits.</p>
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L27" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L27" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="RangeDefect">
- <dt><pre><a href="exceptions.html#RangeDefect"><span class="Identifier">RangeDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="system.html#Defect"><span class="Identifier">Defect</span></a></pre></dt>
- <dd>
-
-
- Raised if a range check error occurred.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L55" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L55" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="ReadIOEffect">
- <dt><pre><a href="exceptions.html#ReadIOEffect"><span class="Identifier">ReadIOEffect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="exceptions.html#IOEffect"><span class="Identifier">IOEffect</span></a></pre></dt>
- <dd>
-
- Effect describing a read IO operation.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L6" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L6" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="ReraiseDefect">
- <dt><pre><a href="exceptions.html#ReraiseDefect"><span class="Identifier">ReraiseDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="system.html#Defect"><span class="Identifier">Defect</span></a></pre></dt>
- <dd>
-
-
- Raised if there is no exception to reraise.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L59" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L59" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="ResourceExhaustedError">
- <dt><pre><a href="exceptions.html#ResourceExhaustedError"><span class="Identifier">ResourceExhaustedError</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="system.html#CatchableError"><span class="Identifier">CatchableError</span></a></pre></dt>
- <dd>
-
-
- Raised if a resource request could not be fulfilled.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L20" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L20" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="StackOverflowDefect">
- <dt><pre><a href="exceptions.html#StackOverflowDefect"><span class="Identifier">StackOverflowDefect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="system.html#Defect"><span class="Identifier">Defect</span></a></pre></dt>
- <dd>
-
-
- Raised if the hardware stack used for subroutine calls overflowed.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L57" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L57" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="TimeEffect">
- <dt><pre><a href="exceptions.html#TimeEffect"><span class="Identifier">TimeEffect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="system.html#RootEffect"><span class="Identifier">RootEffect</span></a></pre></dt>
- <dd>
-
- Time effect.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L4" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L4" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="ValueError">
- <dt><pre><a href="exceptions.html#ValueError"><span class="Identifier">ValueError</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="system.html#CatchableError"><span class="Identifier">CatchableError</span></a></pre></dt>
- <dd>
-
-
- Raised for string and object conversion errors.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L39" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L39" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="WriteIOEffect">
- <dt><pre><a href="exceptions.html#WriteIOEffect"><span class="Identifier">WriteIOEffect</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <a href="exceptions.html#IOEffect"><span class="Identifier">IOEffect</span></a></pre></dt>
- <dd>
-
- Effect describing a write IO operation.
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/system/exceptions.nim#L7" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/system/exceptions.nim#L7" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </dl>
- </div>
- </div>
- </div>
- <div class="twelve-columns footer">
- <span class="nim-sprite"></span>
- <br>
- <small style="color: var(--hint);">Made with Nim. Generated: 2025-03-15 14:12:59 UTC</small>
- </div>
- </div>
- </div>
- <script defer data-domain="nim-lang.org" src="https://plausible.io/js/plausible.js"></script>
-
- </body>
- </html>
|