Skip to content

File SolidSyslogErrorCategory.h

FileList > Core > Interface > SolidSyslogErrorCategory.h

Go to the source code of this file

The portable error-category axis: the universal lifecycle category macros and the per-role base ranges a handler switches on or an emit site picks.

  • #include <stdint.h>

Macros

Type Name
define SOLIDSYSLOG_CAT_BAD_ARGUMENT ((uint16\_t) 0x0002U)
define SOLIDSYSLOG_CAT_BAD_CONFIG ((uint16\_t) 0x0001U)
Portable error-category axis, the field a handler switches on without knowing the Source.
define SOLIDSYSLOG_CAT_BUFFER_BASE ((uint16\_t) 0x0600U)
define SOLIDSYSLOG_CAT_POOL_EXHAUSTED ((uint16\_t) 0x0003U)
define SOLIDSYSLOG_CAT_RESOLVER_BASE ((uint16\_t) 0x0200U)
define SOLIDSYSLOG_CAT_SECURITYPOLICY_BASE ((uint16\_t) 0x0500U)
define SOLIDSYSLOG_CAT_SENDER_BASE ((uint16\_t) 0x0100U)
Per-role base ranges.
define SOLIDSYSLOG_CAT_TLSSTREAM_BASE ((uint16\_t) 0x0400U)
define SOLIDSYSLOG_CAT_UNKNOWN_DESTROY ((uint16\_t) 0x0004U)

Macro Definition Documentation

define SOLIDSYSLOG_CAT_BAD_ARGUMENT

#define SOLIDSYSLOG_CAT_BAD_ARGUMENT `((uint16_t) 0x0002U)`

define SOLIDSYSLOG_CAT_BAD_CONFIG

Portable error-category axis, the field a handler switches on without knowing the Source.

#define SOLIDSYSLOG_CAT_BAD_CONFIG `((uint16_t) 0x0001U)`

Categories are library-owned constants organised errno-domain style: a low universal-lifecycle range, then one base per role family (declared beside that role's *Definition.h, off the bases below as BASE + n), then a reserved integrator range. 0xC000 and above is reserved for integrator-defined roles so custom backends never collide.

The category constants carry their own (uint16_t) cast so emit sites stay clean. SolidSyslog_Error's category parameter is uint16_t, not an enum type, which is what lets integrator classes supply their own categories in the reserved range without being boxed into a library enum. Universal lifecycle categories, available to every source.


define SOLIDSYSLOG_CAT_BUFFER_BASE

#define SOLIDSYSLOG_CAT_BUFFER_BASE `((uint16_t) 0x0600U)`

define SOLIDSYSLOG_CAT_POOL_EXHAUSTED

#define SOLIDSYSLOG_CAT_POOL_EXHAUSTED `((uint16_t) 0x0003U)`

define SOLIDSYSLOG_CAT_RESOLVER_BASE

#define SOLIDSYSLOG_CAT_RESOLVER_BASE `((uint16_t) 0x0200U)`

define SOLIDSYSLOG_CAT_SECURITYPOLICY_BASE

#define SOLIDSYSLOG_CAT_SECURITYPOLICY_BASE `((uint16_t) 0x0500U)`

define SOLIDSYSLOG_CAT_SENDER_BASE

Per-role base ranges.

#define SOLIDSYSLOG_CAT_SENDER_BASE `((uint16_t) 0x0100U)`

A role occupies [BASE, BASE + 0xFF]. A base is listed here only once a role family carries a role-specific category; roles that emit only the universal categories above need none. (0x0300 Stream is intentionally unallocated: that role emits only universal categories today.) The specific categories in each range live in SolidSyslog<Role>Categories.h beside that role's *Definition.h.


define SOLIDSYSLOG_CAT_TLSSTREAM_BASE

#define SOLIDSYSLOG_CAT_TLSSTREAM_BASE `((uint16_t) 0x0400U)`

define SOLIDSYSLOG_CAT_UNKNOWN_DESTROY

#define SOLIDSYSLOG_CAT_UNKNOWN_DESTROY `((uint16_t) 0x0004U)`


The documentation for this class was generated from the following file Core/Interface/SolidSyslogErrorCategory.h