| version 1.1, 2002/05/14 17:01:34 |
version 1.2, 2002/05/18 18:17:51 |
|
|
| |
|
| <sect1 id="usage.error-codes"> |
<sect1 id="usage.error-codes"> |
| <title id="usage.error-codes.title">Error codes</title> |
<title id="usage.error-codes.title">Error codes</title> |
| |
|
| <para> |
<para> |
| |
|
| |
In following <xref linkend="usage.error-codes.table" |
| |
endterm="usage.error-codes.table.title"> table are defined possible error |
| |
constants returned by parsing function, which has been described in <xref |
| |
linkend="usage.parsing" endterm="usage.parsing.title"> chapter. |
| |
|
| </para> |
</para> |
| </sect1> |
<para> |
| |
|
| |
<table id="usage.error-codes.table" frame=top> |
| |
<title id="usage.error-codes.table.title">Error codes</title> |
| |
<tgroup cols=2> |
| |
<thead> |
| |
<row> |
| |
<entry>Value</entry> |
| |
<entry>Description</entry> |
| |
</row> |
| |
</thead> |
| |
<tbody> |
| |
<row> |
| |
<entry> |
| |
<constant>CFG_ERR_OK</constant>, |
| |
<constant>CFG_ERROR_OK</constant>, |
| |
<constant>CFG_OK</constant> |
| |
</entry> |
| |
<entry>OK, all is right</entry> |
| |
</row> |
| |
<row> |
| |
<entry> |
| |
<constant>CFG_ERR_NOARG</constant>, |
| |
<constant>CFG_ERROR_NOARG</constant> |
| |
</entry> |
| |
<entry>An argument is missing for an option</entry> |
| |
</row> |
| |
<row> |
| |
|
| |
<entry> |
| |
<constant>CFG_ERR_NOTALLOWEDARG</constant>, |
| |
<constant>CFG_ERROR_NOTALLOWEDARG</constant> |
| |
</entry> |
| |
<entry>An argument is not allowed for an option</entry> |
| |
</row> |
| |
<row> |
| |
|
| |
<entry> |
| |
<constant>CFG_ERR_BADOPT</constant>, |
| |
<constant>CFG_ERROR_BADOPT</constant> |
| |
</entry> |
| |
<entry>An option's argument could not be parsed</entry> |
| |
</row> |
| |
<row> |
| |
|
| |
<entry> |
| |
<constant>CFG_ERR_BADQUOTE</constant>, |
| |
<constant>CFG_ERROR_BADQUOTE</constant> |
| |
</entry> |
| |
<entry>Error in quotations</entry> |
| |
</row> |
| |
<row> |
| |
|
| |
<entry> |
| |
<constant>CFG_ERR_BADNUMBER</constant>, |
| |
<constant>CFG_ERROR_BADNUMBER</constant> |
| |
</entry> |
| |
<entry>An option could not be converted to appropriate numeric type</entry> |
| |
</row> |
| |
<row> |
| |
|
| |
<entry> |
| |
<constant>CFG_ERR_OVERFLOW</constant>, |
| |
<constant>CFG_ERROR_OVERFLOW</constant> |
| |
</entry> |
| |
<entry>A given number was too big or too small</entry> |
| |
</row> |
| |
<row> |
| |
|
| |
<entry> |
| |
<constant>CFG_ERR_MULTI</constant>, |
| |
<constant>CFG_ERROR_MULTI</constant> |
| |
</entry> |
| |
<entry>Multiple arguments used for single option</entry> |
| |
</row> |
| |
<row> |
| |
|
| |
<entry> |
| |
<constant>CFG_ERR_NOMEM</constant>, |
| |
<constant>CFG_ERROR_NOMEM</constant> |
| |
</entry> |
| |
<entry>Not enough memory</entry> |
| |
</row> |
| |
<row> |
| |
|
| |
<entry> |
| |
<constant>CFG_ERR_STOP_STR</constant>, |
| |
<constant>CFG_ERR_STOP_STR_FOUND</constant>, |
| |
<constant>CFG_ERROR_STOP_STR</constant>, |
| |
<constant>CFG_ERROR_STOP_STR_FOUND</constant> |
| |
</entry> |
| |
<entry>Stop string was found</entry> |
| |
</row> |
| |
<row> |
| |
|
| |
<entry> |
| |
<constant>CFG_ERR_NOEQUAL</constant>, |
| |
<constant>CFG_ERROR_NOEQUAL</constant> |
| |
</entry> |
| |
<entry>No equal sign on the line</entry> |
| |
</row> |
| |
<row> |
| |
|
| |
<entry> |
| |
<constant>CFG_ERR_UNKNOWN</constant>, |
| |
<constant>CFG_ERROR_UNKNOWN</constant> |
| |
</entry> |
| |
<entry>An unknown option</entry> |
| |
</row> |
| |
<row> |
| |
|
| |
<entry> |
| |
<constant>CFG_ERR_FILE_NOT_FOUND</constant>, |
| |
<constant>CFG_ERROR_FILE_NOT_FOUND</constant> |
| |
</entry> |
| |
<entry>File not found error</entry> |
| |
</row> |
| |
<row> |
| |
|
| |
<entry> |
| |
<constant>CFG_ERR_SEEK_ERROR</constant>, |
| |
<constant>CFG_ERROR_SEEK_ERROR</constant> |
| |
</entry> |
| |
<entry>Seek error (fseek() failure)</entry> |
| |
</row> |
| |
<row> |
| |
|
| |
<entry> |
| |
<constant>CFG_ERR_INTERNAL</constant>, |
| |
<constant>CFG_ERROR_INTERNAL</constant> |
| |
</entry> |
| |
<entry>Internal error</entry> |
| |
</row> |
| |
</tbody> |
| |
</tgroup> |
| |
</table> |
| |
|
| |
</para> |
| |
</sect1> |
| |
|