PageRenderTime 54ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/system/kievstore/depends/kyoto-do-not-need/doc/classes/KyotoCabinet/Error.html

https://bitbucket.org/pavelvasev/ride
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
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <title>Class: KyotoCabinet::Error [Kyoto Cabinet]</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <meta http-equiv="Content-Script-Type" content="text/javascript" />
  8. <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
  9. <script type="text/javascript">
  10. // <![CDATA[
  11. function popupCode( url ) {
  12. window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  13. }
  14. function toggleCode( id ) {
  15. if ( document.getElementById )
  16. elem = document.getElementById( id );
  17. else if ( document.all )
  18. elem = eval( "document.all." + id );
  19. else
  20. return false;
  21. elemStyle = elem.style;
  22. if ( elemStyle.display != "block" ) {
  23. elemStyle.display = "block"
  24. } else {
  25. elemStyle.display = "none"
  26. }
  27. return true;
  28. }
  29. // Make codeblocks hidden by default
  30. document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
  31. // ]]>
  32. </script>
  33. </head>
  34. <body>
  35. <div id="classHeader">
  36. <table class="header-table">
  37. <tr class="top-aligned-row">
  38. <td><strong>Class</strong></td>
  39. <td class="class-name-in-header">KyotoCabinet::Error</td>
  40. </tr>
  41. <tr class="top-aligned-row">
  42. <td><strong>In:</strong></td>
  43. <td>
  44. <a href="../../files/kyotocabinet_rb.html">
  45. kyotocabinet.rb
  46. </a>
  47. <br />
  48. </td>
  49. </tr>
  50. <tr class="top-aligned-row">
  51. <td><strong>Parent:</strong></td>
  52. <td>
  53. RuntimeError
  54. </td>
  55. </tr>
  56. </table>
  57. </div>
  58. <!-- banner header -->
  59. <div id="bodyContent">
  60. <div id="contextContent">
  61. <div id="description">
  62. <p>
  63. <a href="Error.html">Error</a> data.
  64. </p>
  65. </div>
  66. </div>
  67. <div id="method-list">
  68. <h3 class="section-bar">Methods</h3>
  69. <div class="name-list">
  70. <a href="#M000015">!=</a>&nbsp;&nbsp;
  71. <a href="#M000014">==</a>&nbsp;&nbsp;
  72. <a href="#M000009">code</a>&nbsp;&nbsp;
  73. <a href="#M000013">inspect</a>&nbsp;&nbsp;
  74. <a href="#M000011">message</a>&nbsp;&nbsp;
  75. <a href="#M000010">name</a>&nbsp;&nbsp;
  76. <a href="#M000007">new</a>&nbsp;&nbsp;
  77. <a href="#M000008">set</a>&nbsp;&nbsp;
  78. <a href="#M000012">to_s</a>&nbsp;&nbsp;
  79. </div>
  80. </div>
  81. </div>
  82. <!-- if includes -->
  83. <div id="section">
  84. <div id="constants-list">
  85. <h3 class="section-bar">Constants</h3>
  86. <div class="name-list">
  87. <table summary="Constants">
  88. <tr class="top-aligned-row context-row">
  89. <td class="context-item-name">SUCCESS</td>
  90. <td>=</td>
  91. <td class="context-item-value">0</td>
  92. <td>&nbsp;</td>
  93. <td class="context-item-desc">
  94. error code: success
  95. </td>
  96. </tr>
  97. <tr class="top-aligned-row context-row">
  98. <td class="context-item-name">NOIMPL</td>
  99. <td>=</td>
  100. <td class="context-item-value">1</td>
  101. <td>&nbsp;</td>
  102. <td class="context-item-desc">
  103. error code: not implemented
  104. </td>
  105. </tr>
  106. <tr class="top-aligned-row context-row">
  107. <td class="context-item-name">INVALID</td>
  108. <td>=</td>
  109. <td class="context-item-value">2</td>
  110. <td>&nbsp;</td>
  111. <td class="context-item-desc">
  112. error code: invalid operation
  113. </td>
  114. </tr>
  115. <tr class="top-aligned-row context-row">
  116. <td class="context-item-name">NOFILE</td>
  117. <td>=</td>
  118. <td class="context-item-value">3</td>
  119. <td>&nbsp;</td>
  120. <td class="context-item-desc">
  121. error code: file not found
  122. </td>
  123. </tr>
  124. <tr class="top-aligned-row context-row">
  125. <td class="context-item-name">NOPERM</td>
  126. <td>=</td>
  127. <td class="context-item-value">4</td>
  128. <td>&nbsp;</td>
  129. <td class="context-item-desc">
  130. error code: no permission
  131. </td>
  132. </tr>
  133. <tr class="top-aligned-row context-row">
  134. <td class="context-item-name">BROKEN</td>
  135. <td>=</td>
  136. <td class="context-item-value">5</td>
  137. <td>&nbsp;</td>
  138. <td class="context-item-desc">
  139. error code: broken file
  140. </td>
  141. </tr>
  142. <tr class="top-aligned-row context-row">
  143. <td class="context-item-name">DUPREC</td>
  144. <td>=</td>
  145. <td class="context-item-value">6</td>
  146. <td>&nbsp;</td>
  147. <td class="context-item-desc">
  148. error code: record duplication
  149. </td>
  150. </tr>
  151. <tr class="top-aligned-row context-row">
  152. <td class="context-item-name">NOREC</td>
  153. <td>=</td>
  154. <td class="context-item-value">7</td>
  155. <td>&nbsp;</td>
  156. <td class="context-item-desc">
  157. error code: no record
  158. </td>
  159. </tr>
  160. <tr class="top-aligned-row context-row">
  161. <td class="context-item-name">LOGIC</td>
  162. <td>=</td>
  163. <td class="context-item-value">8</td>
  164. <td>&nbsp;</td>
  165. <td class="context-item-desc">
  166. error code: logical inconsistency
  167. </td>
  168. </tr>
  169. <tr class="top-aligned-row context-row">
  170. <td class="context-item-name">SYSTEM</td>
  171. <td>=</td>
  172. <td class="context-item-value">9</td>
  173. <td>&nbsp;</td>
  174. <td class="context-item-desc">
  175. error code: system error
  176. </td>
  177. </tr>
  178. <tr class="top-aligned-row context-row">
  179. <td class="context-item-name">MISC</td>
  180. <td>=</td>
  181. <td class="context-item-value">15</td>
  182. <td>&nbsp;</td>
  183. <td class="context-item-desc">
  184. error code: miscellaneous error
  185. </td>
  186. </tr>
  187. </table>
  188. </div>
  189. </div>
  190. <!-- if method_list -->
  191. <div id="methods">
  192. <h3 class="section-bar">Public Class methods</h3>
  193. <div id="method-M000007" class="method-detail">
  194. <a name="M000007"></a>
  195. <div class="method-heading">
  196. <a href="Error.src/M000007.html" target="Code" class="method-signature"
  197. onclick="popupCode('Error.src/M000007.html');return false;">
  198. <span class="method-name">new</span><span class="method-args">(code, message)</span>
  199. </a>
  200. </div>
  201. <div class="method-description">
  202. <p>
  203. Create an error object.
  204. </p>
  205. <ul>
  206. <li><strong>@param <var>code</var></strong> the error code.
  207. </li>
  208. <li><strong>@param <var>message</var></strong> the supplement message.
  209. </li>
  210. <li><strong>@return</strong> the error object.
  211. </li>
  212. </ul>
  213. </div>
  214. </div>
  215. <h3 class="section-bar">Public Instance methods</h3>
  216. <div id="method-M000015" class="method-detail">
  217. <a name="M000015"></a>
  218. <div class="method-heading">
  219. <a href="Error.src/M000015.html" target="Code" class="method-signature"
  220. onclick="popupCode('Error.src/M000015.html');return false;">
  221. <span class="method-name">!=</span><span class="method-args">(right)</span>
  222. </a>
  223. </div>
  224. <div class="method-description">
  225. <p>
  226. Negation equality operator.
  227. </p>
  228. <ul>
  229. <li><strong>@param <var>right</var></strong> an error object or an error code.
  230. </li>
  231. <li><strong>@return</strong> false for the both operands are equal, or true if
  232. not.
  233. </li>
  234. </ul>
  235. </div>
  236. </div>
  237. <div id="method-M000014" class="method-detail">
  238. <a name="M000014"></a>
  239. <div class="method-heading">
  240. <a href="Error.src/M000014.html" target="Code" class="method-signature"
  241. onclick="popupCode('Error.src/M000014.html');return false;">
  242. <span class="method-name">==</span><span class="method-args">(right)</span>
  243. </a>
  244. </div>
  245. <div class="method-description">
  246. <p>
  247. Equality operator.
  248. </p>
  249. <ul>
  250. <li><strong>@param <var>right</var></strong> an error object or an error code.
  251. </li>
  252. <li><strong>@return</strong> true for the both operands are equal, or false if
  253. not.
  254. </li>
  255. </ul>
  256. </div>
  257. </div>
  258. <div id="method-M000009" class="method-detail">
  259. <a name="M000009"></a>
  260. <div class="method-heading">
  261. <a href="Error.src/M000009.html" target="Code" class="method-signature"
  262. onclick="popupCode('Error.src/M000009.html');return false;">
  263. <span class="method-name">code</span><span class="method-args">()</span>
  264. </a>
  265. </div>
  266. <div class="method-description">
  267. <p>
  268. Get the error code.
  269. </p>
  270. <ul>
  271. <li><strong>@return</strong> the error code.
  272. </li>
  273. </ul>
  274. </div>
  275. </div>
  276. <div id="method-M000013" class="method-detail">
  277. <a name="M000013"></a>
  278. <div class="method-heading">
  279. <a href="Error.src/M000013.html" target="Code" class="method-signature"
  280. onclick="popupCode('Error.src/M000013.html');return false;">
  281. <span class="method-name">inspect</span><span class="method-args">()</span>
  282. </a>
  283. </div>
  284. <div class="method-description">
  285. <p>
  286. Get the inspection string.
  287. </p>
  288. <ul>
  289. <li><strong>@return</strong> the inspection string.
  290. </li>
  291. </ul>
  292. </div>
  293. </div>
  294. <div id="method-M000011" class="method-detail">
  295. <a name="M000011"></a>
  296. <div class="method-heading">
  297. <a href="Error.src/M000011.html" target="Code" class="method-signature"
  298. onclick="popupCode('Error.src/M000011.html');return false;">
  299. <span class="method-name">message</span><span class="method-args">()</span>
  300. </a>
  301. </div>
  302. <div class="method-description">
  303. <p>
  304. Get the supplement message.
  305. </p>
  306. <ul>
  307. <li><strong>@return</strong> the supplement message.
  308. </li>
  309. </ul>
  310. </div>
  311. </div>
  312. <div id="method-M000010" class="method-detail">
  313. <a name="M000010"></a>
  314. <div class="method-heading">
  315. <a href="Error.src/M000010.html" target="Code" class="method-signature"
  316. onclick="popupCode('Error.src/M000010.html');return false;">
  317. <span class="method-name">name</span><span class="method-args">()</span>
  318. </a>
  319. </div>
  320. <div class="method-description">
  321. <p>
  322. Get the readable string of the code.
  323. </p>
  324. <ul>
  325. <li><strong>@return</strong> the readable string of the code.
  326. </li>
  327. </ul>
  328. </div>
  329. </div>
  330. <div id="method-M000008" class="method-detail">
  331. <a name="M000008"></a>
  332. <div class="method-heading">
  333. <a href="Error.src/M000008.html" target="Code" class="method-signature"
  334. onclick="popupCode('Error.src/M000008.html');return false;">
  335. <span class="method-name">set</span><span class="method-args">(code, message)</span>
  336. </a>
  337. </div>
  338. <div class="method-description">
  339. <p>
  340. Set the error information.
  341. </p>
  342. <ul>
  343. <li><strong>@param <var>code</var></strong> the error code.
  344. </li>
  345. <li><strong>@param <var>message</var></strong> the supplement message.
  346. </li>
  347. <li><strong>@return</strong> always nil.
  348. </li>
  349. </ul>
  350. </div>
  351. </div>
  352. <div id="method-M000012" class="method-detail">
  353. <a name="M000012"></a>
  354. <div class="method-heading">
  355. <a href="Error.src/M000012.html" target="Code" class="method-signature"
  356. onclick="popupCode('Error.src/M000012.html');return false;">
  357. <span class="method-name">to_s</span><span class="method-args">()</span>
  358. </a>
  359. </div>
  360. <div class="method-description">
  361. <p>
  362. Get the string expression.
  363. </p>
  364. <ul>
  365. <li><strong>@return</strong> the string expression.
  366. </li>
  367. </ul>
  368. </div>
  369. </div>
  370. </div>
  371. </div>
  372. <div id="validator-badges">
  373. </div>
  374. </body>
  375. </html>