File: C:/Ruby27-x64/share/doc/ruby/html/Errno.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>module Errno - RDoc Documentation</title>
<script type="text/javascript">
var rdoc_rel_prefix = "./";
var index_rel_prefix = "./";
</script>
<script src="./js/navigation.js" defer></script>
<script src="./js/search.js" defer></script>
<script src="./js/search_index.js" defer></script>
<script src="./js/searcher.js" defer></script>
<script src="./js/darkfish.js" defer></script>
<link href="./css/fonts.css" rel="stylesheet">
<link href="./css/rdoc.css" rel="stylesheet">
<body id="top" role="document" class="module">
<nav role="navigation">
<div id="project-navigation">
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
<h2>
<a href="./index.html" rel="home">Home</a>
</h2>
<div id="table-of-contents-navigation">
<a href="./table_of_contents.html#pages">Pages</a>
<a href="./table_of_contents.html#classes">Classes</a>
<a href="./table_of_contents.html#methods">Methods</a>
</div>
</div>
<div id="search-section" role="search" class="project-section initially-hidden">
<form action="#" method="get" accept-charset="utf-8">
<div id="search-field-wrapper">
<input id="search-field" role="combobox" aria-label="Search"
aria-autocomplete="list" aria-controls="search-results"
type="text" name="search" placeholder="Search" spellcheck="false"
title="Type to search, Up and Down to navigate, Enter to load">
</div>
<ul id="search-results" aria-label="Search Results"
aria-busy="false" aria-expanded="false"
aria-atomic="false" class="initially-hidden"></ul>
</form>
</div>
</div>
<div id="class-metadata">
</div>
</nav>
<main role="main" aria-labelledby="module-Errno">
<h1 id="module-Errno" class="module">
module Errno
</h1>
<section class="description">
<p>Ruby exception objects are subclasses of <a href="Exception.html"><code>Exception</code></a>. However, operating systems typically report errors using plain integers. <a href="Module.html"><code>Module</code></a> <a href="Errno.html"><code>Errno</code></a> is created dynamically to map these operating system errors to Ruby classes, with each error number generating its own subclass of <a href="SystemCallError.html"><code>SystemCallError</code></a>. As the subclass is created in module <a href="Errno.html"><code>Errno</code></a>, its name will start <code>Errno::</code>.</p>
<p>The names of the <code>Errno::</code> classes depend on the environment in which Ruby runs. On a typical Unix or Windows platform, there are <a href="Errno.html"><code>Errno</code></a> classes such as Errno::EACCES, Errno::EAGAIN, Errno::EINTR, and so on.</p>
<p>The integer operating system error number corresponding to a particular error is available as the class constant <code>Errno::</code><em>error</em><code>::Errno</code>.</p>
<pre class="ruby"><span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">EACCES</span><span class="ruby-operator">::</span><span class="ruby-constant">Errno</span> <span class="ruby-comment">#=> 13</span>
<span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">EAGAIN</span><span class="ruby-operator">::</span><span class="ruby-constant">Errno</span> <span class="ruby-comment">#=> 11</span>
<span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">EINTR</span><span class="ruby-operator">::</span><span class="ruby-constant">Errno</span> <span class="ruby-comment">#=> 4</span>
</pre>
<p>The full list of operating system errors on your particular platform are available as the constants of <a href="Errno.html"><code>Errno</code></a>.</p>
<pre class="ruby"><span class="ruby-constant">Errno</span>.<span class="ruby-identifier">constants</span> <span class="ruby-comment">#=> :E2BIG, :EACCES, :EADDRINUSE, :EADDRNOTAVAIL, ...</span>
</pre>
<p>System call error module used by webrick for cross platform compatibility.</p>
<dl class="rdoc-list note-list"><dt><a href="Errno/EPROTO.html"><code>EPROTO</code></a>
<dd>
<p>protocol error</p>
</dd><dt><a href="Errno/ECONNRESET.html"><code>ECONNRESET</code></a>
<dd>
<p>remote host reset the connection request</p>
</dd><dt><a href="Errno/ECONNABORTED.html"><code>ECONNABORTED</code></a>
<dd>
<p>Client sent TCP reset (RST) before server has accepted the connection requested by client.</p>
</dd></dl>
</section>
<section id="5Buntitled-5D" class="documentation-section">
</section>
</main>
<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.1.
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
</footer>