/system/kievstore/depends/kyoto-do-not-need/doc/classes/KyotoCabinet/Error.html
HTML | 587 lines | 372 code | 212 blank | 3 comment | 0 complexity | 9f96e2aa60efae29fd18e6d1da1cb36e MD5 | raw file
Possible License(s): GPL-3.0, CC-BY-3.0
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <title>Class: KyotoCabinet::Error [Kyoto Cabinet]</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
- <script type="text/javascript">
- // <![CDATA[
- function popupCode( url ) {
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
- }
- function toggleCode( id ) {
- if ( document.getElementById )
- elem = document.getElementById( id );
- else if ( document.all )
- elem = eval( "document.all." + id );
- else
- return false;
- elemStyle = elem.style;
- if ( elemStyle.display != "block" ) {
- elemStyle.display = "block"
- } else {
- elemStyle.display = "none"
- }
- return true;
- }
- // Make codeblocks hidden by default
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
- // ]]>
- </script>
- </head>
- <body>
- <div id="classHeader">
- <table class="header-table">
- <tr class="top-aligned-row">
- <td><strong>Class</strong></td>
- <td class="class-name-in-header">KyotoCabinet::Error</td>
- </tr>
- <tr class="top-aligned-row">
- <td><strong>In:</strong></td>
- <td>
- <a href="../../files/kyotocabinet_rb.html">
- kyotocabinet.rb
- </a>
- <br />
- </td>
- </tr>
- <tr class="top-aligned-row">
- <td><strong>Parent:</strong></td>
- <td>
- RuntimeError
- </td>
- </tr>
- </table>
- </div>
- <!-- banner header -->
- <div id="bodyContent">
- <div id="contextContent">
- <div id="description">
- <p>
- <a href="Error.html">Error</a> data.
- </p>
- </div>
- </div>
- <div id="method-list">
- <h3 class="section-bar">Methods</h3>
- <div class="name-list">
- <a href="#M000015">!=</a>
- <a href="#M000014">==</a>
- <a href="#M000009">code</a>
- <a href="#M000013">inspect</a>
- <a href="#M000011">message</a>
- <a href="#M000010">name</a>
- <a href="#M000007">new</a>
- <a href="#M000008">set</a>
- <a href="#M000012">to_s</a>
- </div>
- </div>
- </div>
- <!-- if includes -->
- <div id="section">
- <div id="constants-list">
- <h3 class="section-bar">Constants</h3>
- <div class="name-list">
- <table summary="Constants">
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">SUCCESS</td>
- <td>=</td>
- <td class="context-item-value">0</td>
- <td> </td>
- <td class="context-item-desc">
- error code: success
- </td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">NOIMPL</td>
- <td>=</td>
- <td class="context-item-value">1</td>
- <td> </td>
- <td class="context-item-desc">
- error code: not implemented
- </td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">INVALID</td>
- <td>=</td>
- <td class="context-item-value">2</td>
- <td> </td>
- <td class="context-item-desc">
- error code: invalid operation
- </td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">NOFILE</td>
- <td>=</td>
- <td class="context-item-value">3</td>
- <td> </td>
- <td class="context-item-desc">
- error code: file not found
- </td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">NOPERM</td>
- <td>=</td>
- <td class="context-item-value">4</td>
- <td> </td>
- <td class="context-item-desc">
- error code: no permission
- </td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">BROKEN</td>
- <td>=</td>
- <td class="context-item-value">5</td>
- <td> </td>
- <td class="context-item-desc">
- error code: broken file
- </td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">DUPREC</td>
- <td>=</td>
- <td class="context-item-value">6</td>
- <td> </td>
- <td class="context-item-desc">
- error code: record duplication
- </td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">NOREC</td>
- <td>=</td>
- <td class="context-item-value">7</td>
- <td> </td>
- <td class="context-item-desc">
- error code: no record
- </td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">LOGIC</td>
- <td>=</td>
- <td class="context-item-value">8</td>
- <td> </td>
- <td class="context-item-desc">
- error code: logical inconsistency
- </td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">SYSTEM</td>
- <td>=</td>
- <td class="context-item-value">9</td>
- <td> </td>
- <td class="context-item-desc">
- error code: system error
- </td>
- </tr>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name">MISC</td>
- <td>=</td>
- <td class="context-item-value">15</td>
- <td> </td>
- <td class="context-item-desc">
- error code: miscellaneous error
- </td>
- </tr>
- </table>
- </div>
- </div>
- <!-- if method_list -->
- <div id="methods">
- <h3 class="section-bar">Public Class methods</h3>
- <div id="method-M000007" class="method-detail">
- <a name="M000007"></a>
- <div class="method-heading">
- <a href="Error.src/M000007.html" target="Code" class="method-signature"
- onclick="popupCode('Error.src/M000007.html');return false;">
- <span class="method-name">new</span><span class="method-args">(code, message)</span>
- </a>
- </div>
- <div class="method-description">
- <p>
- Create an error object.
- </p>
- <ul>
- <li><strong>@param <var>code</var></strong> the error code.
- </li>
- <li><strong>@param <var>message</var></strong> the supplement message.
- </li>
- <li><strong>@return</strong> the error object.
- </li>
- </ul>
- </div>
- </div>
- <h3 class="section-bar">Public Instance methods</h3>
- <div id="method-M000015" class="method-detail">
- <a name="M000015"></a>
- <div class="method-heading">
- <a href="Error.src/M000015.html" target="Code" class="method-signature"
- onclick="popupCode('Error.src/M000015.html');return false;">
- <span class="method-name">!=</span><span class="method-args">(right)</span>
- </a>
- </div>
- <div class="method-description">
- <p>
- Negation equality operator.
- </p>
- <ul>
- <li><strong>@param <var>right</var></strong> an error object or an error code.
- </li>
- <li><strong>@return</strong> false for the both operands are equal, or true if
- not.
- </li>
- </ul>
- </div>
- </div>
- <div id="method-M000014" class="method-detail">
- <a name="M000014"></a>
- <div class="method-heading">
- <a href="Error.src/M000014.html" target="Code" class="method-signature"
- onclick="popupCode('Error.src/M000014.html');return false;">
- <span class="method-name">==</span><span class="method-args">(right)</span>
- </a>
- </div>
- <div class="method-description">
- <p>
- Equality operator.
- </p>
- <ul>
- <li><strong>@param <var>right</var></strong> an error object or an error code.
- </li>
- <li><strong>@return</strong> true for the both operands are equal, or false if
- not.
- </li>
- </ul>
- </div>
- </div>
- <div id="method-M000009" class="method-detail">
- <a name="M000009"></a>
- <div class="method-heading">
- <a href="Error.src/M000009.html" target="Code" class="method-signature"
- onclick="popupCode('Error.src/M000009.html');return false;">
- <span class="method-name">code</span><span class="method-args">()</span>
- </a>
- </div>
- <div class="method-description">
- <p>
- Get the error code.
- </p>
- <ul>
- <li><strong>@return</strong> the error code.
- </li>
- </ul>
- </div>
- </div>
- <div id="method-M000013" class="method-detail">
- <a name="M000013"></a>
- <div class="method-heading">
- <a href="Error.src/M000013.html" target="Code" class="method-signature"
- onclick="popupCode('Error.src/M000013.html');return false;">
- <span class="method-name">inspect</span><span class="method-args">()</span>
- </a>
- </div>
- <div class="method-description">
- <p>
- Get the inspection string.
- </p>
- <ul>
- <li><strong>@return</strong> the inspection string.
- </li>
- </ul>
- </div>
- </div>
- <div id="method-M000011" class="method-detail">
- <a name="M000011"></a>
- <div class="method-heading">
- <a href="Error.src/M000011.html" target="Code" class="method-signature"
- onclick="popupCode('Error.src/M000011.html');return false;">
- <span class="method-name">message</span><span class="method-args">()</span>
- </a>
- </div>
- <div class="method-description">
- <p>
- Get the supplement message.
- </p>
- <ul>
- <li><strong>@return</strong> the supplement message.
- </li>
- </ul>
- </div>
- </div>
- <div id="method-M000010" class="method-detail">
- <a name="M000010"></a>
- <div class="method-heading">
- <a href="Error.src/M000010.html" target="Code" class="method-signature"
- onclick="popupCode('Error.src/M000010.html');return false;">
- <span class="method-name">name</span><span class="method-args">()</span>
- </a>
- </div>
- <div class="method-description">
- <p>
- Get the readable string of the code.
- </p>
- <ul>
- <li><strong>@return</strong> the readable string of the code.
- </li>
- </ul>
- </div>
- </div>
- <div id="method-M000008" class="method-detail">
- <a name="M000008"></a>
- <div class="method-heading">
- <a href="Error.src/M000008.html" target="Code" class="method-signature"
- onclick="popupCode('Error.src/M000008.html');return false;">
- <span class="method-name">set</span><span class="method-args">(code, message)</span>
- </a>
- </div>
- <div class="method-description">
- <p>
- Set the error information.
- </p>
- <ul>
- <li><strong>@param <var>code</var></strong> the error code.
- </li>
- <li><strong>@param <var>message</var></strong> the supplement message.
- </li>
- <li><strong>@return</strong> always nil.
- </li>
- </ul>
- </div>
- </div>
- <div id="method-M000012" class="method-detail">
- <a name="M000012"></a>
- <div class="method-heading">
- <a href="Error.src/M000012.html" target="Code" class="method-signature"
- onclick="popupCode('Error.src/M000012.html');return false;">
- <span class="method-name">to_s</span><span class="method-args">()</span>
- </a>
- </div>
- <div class="method-description">
- <p>
- Get the string expression.
- </p>
- <ul>
- <li><strong>@return</strong> the string expression.
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- <div id="validator-badges">
- </div>
- </body>
- </html>