include
errors.h
Go to the documentation of this file.
1
/* Copyright (c) 2004-2009, Isode Limited, London, England.
2
* All rights reserved.
3
*
4
* Acquisition and use of this software and related materials for any
5
* purpose requires a written licence agreement from Isode Limited,
6
* or a written licence from an organisation licenced by Isode Limited
7
* to grant such a licence.
8
*
9
*/
10
11
#ifndef _SOM_ERRORS_H
12
#define _SOM_ERRORS_H
13
26
/* Define an offset for errors so that the numbers do not conflict with
27
* X.400 API error codes
28
*/
29
30
#define SOM_ERROR_OFFSET 1000
33
enum som_error {
34
SOM_OK
= 0,
35
SOM_ERROR_VERSION
=
SOM_ERROR_OFFSET
,
37
SOM_ERROR_NOINIT
,
38
SOM_ERROR_NOFACILITY
,
39
SOM_ERROR_INTERNAL
,
40
SOM_ERROR_TIMEOUT
,
41
SOM_ERROR_NOSESSION
,
42
SOM_ERROR_ABORT
,
43
SOM_ERROR_NOMEM
,
44
SOM_ERROR_INVALIDARGS
,
45
SOM_ERROR_NOCALLBACK
,
46
SOM_ERROR_NOHOST
,
47
SOM_ERROR_NETWORK
,
48
SOM_ERROR_CONNECT
,
49
SOM_ERROR_AUTHFAILED
,
50
SOM_ERROR_NOTCONNECTED
,
51
SOM_ERROR_PROTOCOL
,
52
SOM_ERROR_FAILED
,
53
SOM_ERROR_BUSY
,
54
SOM_ERROR_MORE
,
55
SOM_ERROR_LIMITREACHED
,
56
SOM_ERROR_NOSPACE
,
57
SOM_ERROR_NOTFOUND
,
58
SOM_ERROR_WRONGTYPE
,
59
SOM_ERROR_DUPLICATE
,
60
SOM_ERROR_NYI
61
};
62
63
/* \} */
64
65
#endif
/* _SOM_ERRORS_H */
SOM_ERROR_NOINIT
@ SOM_ERROR_NOINIT
Definition:
errors.h:37
SOM_ERROR_PROTOCOL
@ SOM_ERROR_PROTOCOL
Definition:
errors.h:51
SOM_ERROR_AUTHFAILED
@ SOM_ERROR_AUTHFAILED
Definition:
errors.h:49
SOM_ERROR_LIMITREACHED
@ SOM_ERROR_LIMITREACHED
Definition:
errors.h:55
SOM_ERROR_BUSY
@ SOM_ERROR_BUSY
Definition:
errors.h:53
SOM_ERROR_OFFSET
#define SOM_ERROR_OFFSET
Definition:
errors.h:30
SOM_ERROR_NOMEM
@ SOM_ERROR_NOMEM
Definition:
errors.h:43
SOM_ERROR_WRONGTYPE
@ SOM_ERROR_WRONGTYPE
Definition:
errors.h:58
SOM_ERROR_NYI
@ SOM_ERROR_NYI
Definition:
errors.h:60
SOM_ERROR_INVALIDARGS
@ SOM_ERROR_INVALIDARGS
Definition:
errors.h:44
SOM_ERROR_NOFACILITY
@ SOM_ERROR_NOFACILITY
Definition:
errors.h:38
SOM_ERROR_DUPLICATE
@ SOM_ERROR_DUPLICATE
Definition:
errors.h:59
SOM_ERROR_TIMEOUT
@ SOM_ERROR_TIMEOUT
Definition:
errors.h:40
SOM_ERROR_NOCALLBACK
@ SOM_ERROR_NOCALLBACK
Definition:
errors.h:45
SOM_OK
@ SOM_OK
Definition:
errors.h:34
SOM_ERROR_CONNECT
@ SOM_ERROR_CONNECT
Definition:
errors.h:48
SOM_ERROR_NOSESSION
@ SOM_ERROR_NOSESSION
Definition:
errors.h:41
SOM_ERROR_VERSION
@ SOM_ERROR_VERSION
Definition:
errors.h:35
SOM_ERROR_MORE
@ SOM_ERROR_MORE
Definition:
errors.h:54
SOM_ERROR_NOTFOUND
@ SOM_ERROR_NOTFOUND
Definition:
errors.h:57
SOM_ERROR_NOSPACE
@ SOM_ERROR_NOSPACE
Definition:
errors.h:56
SOM_ERROR_NOTCONNECTED
@ SOM_ERROR_NOTCONNECTED
Definition:
errors.h:50
SOM_ERROR_FAILED
@ SOM_ERROR_FAILED
Definition:
errors.h:52
SOM_ERROR_NETWORK
@ SOM_ERROR_NETWORK
Definition:
errors.h:47
SOM_ERROR_INTERNAL
@ SOM_ERROR_INTERNAL
Definition:
errors.h:39
SOM_ERROR_ABORT
@ SOM_ERROR_ABORT
Definition:
errors.h:42
SOM_ERROR_NOHOST
@ SOM_ERROR_NOHOST
Definition:
errors.h:46
All rights reserved © 2002 - 2024 Isode Ltd.