Debian Codegraph @

doc/html/errors.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5 <meta http-equiv="X-UA-Compatible" content="IE=11"/>
6 <meta name="generator" content="Doxygen 1.9.4"/>
7 <meta name="viewport" content="width=device-width, initial-scale=1"/>
8 <title>libkate: Error codes</title>
9 <link href="tabs.css" rel="stylesheet" type="text/css"/>
10 <script type="text/javascript" src="jquery.js"></script>
11 <script type="text/javascript" src="dynsections.js"></script>
12 <link href="doxygen.css" rel="stylesheet" type="text/css" />
13 </head>
14 <body>
15 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
16 <div id="titlearea">
17 <table cellspacing="0" cellpadding="0">
18 <tbody>
19 <tr id="projectrow">
20 <td id="projectalign">
21 <div id="projectname">libkate<span id="projectnumber">&#160;0.4.3</span>
22 </div>
23 </td>
24 </tr>
25 </tbody>
26 </table>
27 </div>
28 <!-- end header part -->
29 <!-- Generated by Doxygen 1.9.4 -->
30 <script type="text/javascript" src="menudata.js"></script>
31 <script type="text/javascript" src="menu.js"></script>
32 <script type="text/javascript">
33 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
34 $(function() {
35 initMenu('',false,false,'search.php','Search');
36 });
37 /* @license-end */
38 </script>
39 <div id="main-nav"></div>
40 </div><!-- top -->
41 <div><div class="header">
42 <div class="headertitle"><div class="title">Error codes </div></div>
43 </div><!--header-->
44 <div class="contents">
45 <div class="textblock"><p >Most of the functions in the libkate API return an integer value so errors can be flagged for the client code to check.</p>
46 <p >When a function succeeds, the return code will usually be 0, or in some cases positive, when extra status information needs to be returned. An error will be marked by returning a negative value. See each function's documentation more information.</p>
47 <p >It is <b>strongly</b> recommended that the client code checks return codes for errors.</p>
48 <p >These are the error codes that the libkate API can return:</p>
49 <ul>
50 <li><code>KATE_E_NOT_FOUND</code> The item that was requested was not found </li>
51 <li><code>KATE_E_INVALID_PARAMETER</code> A parameter passed to the libkate API was invalid. This can be a NULL parameter, a negative granulepos or time, etc </li>
52 <li><code>KATE_E_OUT_OF_MEMORY</code> There was not enough memory to perform the requested operation </li>
53 <li><code>KATE_E_BAD_GRANULE</code> A negative granule was encountered, or a a granule decreased when it should not have </li>
54 <li><code>KATE_E_INIT</code> An object was initialized twice, or not initialized when it should have been </li>
55 <li><code>KATE_E_BAD_PACKET</code> An invalid value was read from a Kate packet. This may mean the stream is corrupted, or is not a Kate stream </li>
56 <li><code>KATE_E_TEXT</code> A text handled by libkate was found to be invalid. This can be an invalid character or sequence of characters in the text, or trying to read and/or write beyond the size of the string. </li>
57 <li><code>KATE_E_LIMIT</code> An limit was exceeded (a string too long, a pixel value above what can fit in a bitmap's bit depth, etc) </li>
58 <li><code>KATE_E_VERSION</code> The bitstream version is not supported by this version of libkate </li>
59 <li><code>KATE_E_NOT_KATE</code> The packet passed the the libkate API is not a Kate packet </li>
60 <li><code>KATE_E_BAD_TAG</code> A tag passed to the comment API does not comply with Vorbis comment rules </li>
61 <li><code>KATE_E_IMPL</code> The requested operation is not implemented </li>
62 </ul>
63 </div></div><!-- contents -->
64 </div><!-- PageDoc -->
65 <!-- start footer part -->
66 <hr class="footer"/><address class="footer"><small>
67 Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
68 </small></address>
69 </body>
70 </html>