Debian Codegraph @

doc/kate-errors.doc

raw
1 /* Copyright (C) 2008, 2009 Vincent Penquerc'h.
2 This file is part of the Kate codec library.
3 Written by Vincent Penquerc'h.
4
5 Use, distribution and reproduction of this library is governed
6 by a BSD style source license included with this source in the
7 file 'COPYING'. Please read these terms before distributing. */
8
9
10 /**
11
12 \page errors Error codes
13
14 Most of the functions in the libkate API return an integer value so errors
15 can be flagged for the client code to check.
16
17 When a function succeeds, the return code will usually be 0, or in some
18 cases positive, when extra status information needs to be returned. An error
19 will be marked by returning a negative value. See each function's documentation
20 more information.
21
22 It is \b strongly recommended that the client code checks return codes for errors.
23
24 These are the error codes that the libkate API can return:
25
26 \li \c KATE_E_NOT_FOUND The item that was requested was not found
27 \li \c KATE_E_INVALID_PARAMETER A parameter passed to the libkate API was invalid. This can be a NULL parameter, a negative granulepos or time, etc
28 \li \c KATE_E_OUT_OF_MEMORY There was not enough memory to perform the requested operation
29 \li \c KATE_E_BAD_GRANULE A negative granule was encountered, or a a granule decreased when it should not have
30 \li \c KATE_E_INIT An object was initialized twice, or not initialized when it should have been
31 \li \c KATE_E_BAD_PACKET An invalid value was read from a Kate packet. This may mean the stream is corrupted, or is not a Kate stream
32 \li \c KATE_E_TEXT 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.
33 \li \c KATE_E_LIMIT An limit was exceeded (a string too long, a pixel value above what can fit in a bitmap's bit depth, etc)
34 \li \c KATE_E_VERSION The bitstream version is not supported by this version of libkate
35 \li \c KATE_E_NOT_KATE The packet passed the the libkate API is not a Kate packet
36 \li \c KATE_E_BAD_TAG A tag passed to the comment API does not comply with Vorbis comment rules
37 \li \c KATE_E_IMPL The requested operation is not implemented
38
39
40 */
41