2 lines
2.2 KiB
JavaScript
2 lines
2.2 KiB
JavaScript
import{_ as e,a,b as t,ag as s}from"./chunks/framework.BcrMLAmg.js";const u=JSON.parse('{"title":"ErrorHandler","description":"","frontmatter":{},"headers":[],"relativePath":"references/errorManager.md","filePath":"references/errorManager.md","lastUpdated":1757795332000}'),o={name:"references/errorManager.md"};function n(i,r,l,d,h,c){return t(),a("div",null,r[0]||(r[0]=[s('<h1 id="errorhandler" tabindex="-1">ErrorHandler <a class="header-anchor" href="#errorhandler" aria-label="Permalink to "ErrorHandler""></a></h1><p><em>This is Basalt's error handler. All the errors are handled by this module.</em></p><h2 id="functions" tabindex="-1">Functions <a class="header-anchor" href="#functions" aria-label="Permalink to "Functions""></a></h2><table tabindex="0"><thead><tr><th>Method</th><th>Returns</th><th>Description</th></tr></thead><tbody><tr><td><a href="#errorhandler-error-errmsg">ErrorHandler.error</a></td><td>-</td><td>Handles an error</td></tr></tbody></table><h2 id="errorhandler-error-errmsg" tabindex="-1">ErrorHandler.error(errMsg) <a class="header-anchor" href="#errorhandler-error-errmsg" aria-label="Permalink to "ErrorHandler.error(errMsg)""></a></h2><p>Handles an error</p><h3 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-label="Permalink to "Parameters""></a></h3><ul><li><code>errMsg</code> <code>string</code> The error message</li></ul><h3 id="usage" tabindex="-1">Usage <a class="header-anchor" href="#usage" aria-label="Permalink to "Usage""></a></h3><div class="language-lua vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">lua</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">errorHandler.</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">error</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"An error occurred"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div>',10)]))}const g=e(o,[["render",n]]);export{u as __pageData,g as default};
|