Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6err.h File Reference
#include "p6types.h"

Go to the source code of this file.

Namespaces

 P6R
 

Macros

#define P6ERR_CODE(err)   ((err) & 0xffff) /** 16 bits */
 
#define P6ERR_FACILITY(err)   (((err) >> 16 ) & 0x7fff) /** 15 bits */
 
#define P6ERR_STATUS(err)   (((err) >> 31) & 0x1) /** 1 bit */
 
#define P6ERR_STATUS_FAILURE   1
 
#define P6ERR_STATUS_SUCCESS   0
 
#define P6FAILED(err)   (P6ERR_STATUS_FAILURE == P6ERR_STATUS((err)))
 
#define P6MAKEERR(s, f, c)   ((P6ERR)(((P6UINT32)(s)<<31)|((P6UINT32)(f)<<16)|((P6UINT32)(c))))
 
#define P6SUCCEEDED(err)   (P6ERR_STATUS_SUCCESS == P6ERR_STATUS((err)))
 

Enumerations

enum  P6R::ERR_FACILITY {
  P6R::P6EF_GENERAL = 0x00, P6R::P6EF_NETWORK = 0x01, P6R::P6EF_COM = 0x02, P6R::P6EF_JSON = 0x03,
  P6R::P6EF_CRYPTO = 0x04, P6R::P6EF_CERT = 0x05, P6R::P6EF_SSL = 0x06, P6R::P6EF_DBASE = 0x08,
  P6R::P6EF_REGEX = 0x09, P6R::P6EF_LDAP = 0x0b, P6R::P6EF_SNMP = 0x0c, P6R::P6EF_XSLT = 0x0d,
  P6R::P6EF_RULEENG = 0x0e, P6R::P6EF_XPATH = 0x0f, P6R::P6EF_GZIP = 0x10, P6R::P6EF_MINUSER = 0x2000,
  P6R::P6EF_MAX = 0x7fff
}
 

Detailed Description

Standard error codes.

Definition in file p6err.h.