Error codes

Description of the error codes. More...

Macros

#define SOM_ERROR_OFFSET   1000
 

Enumerations

enum  som_error {
  SOM_OK = 0, SOM_ERROR_VERSION = SOM_ERROR_OFFSET, SOM_ERROR_NOINIT, SOM_ERROR_NOFACILITY,
  SOM_ERROR_INTERNAL, SOM_ERROR_TIMEOUT, SOM_ERROR_NOSESSION, SOM_ERROR_ABORT,
  SOM_ERROR_NOMEM, SOM_ERROR_INVALIDARGS, SOM_ERROR_NOCALLBACK, SOM_ERROR_NOHOST,
  SOM_ERROR_NETWORK, SOM_ERROR_CONNECT, SOM_ERROR_AUTHFAILED, SOM_ERROR_NOTCONNECTED,
  SOM_ERROR_PROTOCOL, SOM_ERROR_FAILED, SOM_ERROR_BUSY, SOM_ERROR_MORE,
  SOM_ERROR_LIMITREACHED, SOM_ERROR_NOSPACE, SOM_ERROR_NOTFOUND, SOM_ERROR_WRONGTYPE,
  SOM_ERROR_DUPLICATE, SOM_ERROR_NYI
}
 

Detailed Description

Description of the error codes.

Macro Definition Documentation

◆ SOM_ERROR_OFFSET

#define SOM_ERROR_OFFSET   1000

Base of error codes

Definition at line 30 of file errors.h.

Enumeration Type Documentation

◆ som_error

enum som_error

Enumeration for SOM error codes

Enumerator
SOM_OK 

No error

SOM_ERROR_VERSION 

Version mismatch

SOM_ERROR_NOINIT 

Not initialized

SOM_ERROR_NOFACILITY 

Facility not requested

SOM_ERROR_INTERNAL 

Internal error

SOM_ERROR_TIMEOUT 

Operation timed out

SOM_ERROR_NOSESSION 

No sessions to poll

SOM_ERROR_ABORT 

Session aborted

SOM_ERROR_NOMEM 

Out of memory

SOM_ERROR_INVALIDARGS 

Invalid arguments

SOM_ERROR_NOCALLBACK 

No callback function

SOM_ERROR_NOHOST 

Cannot resolve host name

SOM_ERROR_NETWORK 

Network error

SOM_ERROR_CONNECT 

Failed to connect

SOM_ERROR_AUTHFAILED 

Authentication failed

SOM_ERROR_NOTCONNECTED 

Not connected to server

SOM_ERROR_PROTOCOL 

Protocol error

SOM_ERROR_FAILED 

Command failed

SOM_ERROR_BUSY 

Session busy with command

SOM_ERROR_MORE 

More data following

SOM_ERROR_LIMITREACHED 

Size limit reached

SOM_ERROR_NOSPACE 

Insufficient space in user buffer

SOM_ERROR_NOTFOUND 

Item not found

SOM_ERROR_WRONGTYPE 

Item has incorrect type

SOM_ERROR_DUPLICATE 

Duplicate item

SOM_ERROR_NYI 

Not yet implemented

Definition at line 33 of file errors.h.

@ SOM_ERROR_NOINIT
Definition: errors.h:37
@ SOM_ERROR_PROTOCOL
Definition: errors.h:51
@ SOM_ERROR_AUTHFAILED
Definition: errors.h:49
@ SOM_ERROR_LIMITREACHED
Definition: errors.h:55
@ SOM_ERROR_BUSY
Definition: errors.h:53
#define SOM_ERROR_OFFSET
Definition: errors.h:30
@ SOM_ERROR_NOMEM
Definition: errors.h:43
@ SOM_ERROR_WRONGTYPE
Definition: errors.h:58
@ SOM_ERROR_NYI
Definition: errors.h:60
@ SOM_ERROR_INVALIDARGS
Definition: errors.h:44
@ SOM_ERROR_NOFACILITY
Definition: errors.h:38
@ SOM_ERROR_DUPLICATE
Definition: errors.h:59
@ SOM_ERROR_TIMEOUT
Definition: errors.h:40
@ SOM_ERROR_NOCALLBACK
Definition: errors.h:45
@ SOM_OK
Definition: errors.h:34
@ SOM_ERROR_CONNECT
Definition: errors.h:48
@ SOM_ERROR_NOSESSION
Definition: errors.h:41
@ SOM_ERROR_VERSION
Definition: errors.h:35
@ SOM_ERROR_MORE
Definition: errors.h:54
@ SOM_ERROR_NOTFOUND
Definition: errors.h:57
@ SOM_ERROR_NOSPACE
Definition: errors.h:56
@ SOM_ERROR_NOTCONNECTED
Definition: errors.h:50
@ SOM_ERROR_FAILED
Definition: errors.h:52
@ SOM_ERROR_NETWORK
Definition: errors.h:47
@ SOM_ERROR_INTERNAL
Definition: errors.h:39
@ SOM_ERROR_ABORT
Definition: errors.h:42
@ SOM_ERROR_NOHOST
Definition: errors.h:46

All rights reserved © 2002 - 2024 Isode Ltd.