Skip to content

File SolidSyslogErrorCategory.h

FileList > Core > Interface > SolidSyslogErrorCategory.h

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>

Macro Definition Documentation

SOLIDSYSLOG_CAT_BAD_ARGUMENT

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

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.


SOLIDSYSLOG_CAT_BUFFER_BASE

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

SOLIDSYSLOG_CAT_POOL_EXHAUSTED

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

SOLIDSYSLOG_CAT_RESOLVER_BASE

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

SOLIDSYSLOG_CAT_SECURITY_POLICY_BASE

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

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.


SOLIDSYSLOG_CAT_TLS_STREAM_BASE

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

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