Skip to content

Struct SolidSyslogErrorEvent

ClassList > SolidSyslogErrorEvent

  • #include <SolidSyslogError.h>
struct SolidSyslogErrorEvent
{
    enum SolidSyslogSeverity Severity;
    uint16_t Category;
    bool HasNativeCode;
    const struct SolidSyslogErrorSource* Source;
    int32_t Detail;
    int32_t NativeCode;
};

Detailed Description

What a handler receives.

Source, Category and Detail are orthogonal axes: Source is the extensible identity (match by pointer against the emitting class's extern), Category is the portable reaction axis (SolidSyslogErrorCategory.h) a handler can switch on without knowing the Source, and Detail is the fine-grained code within that Source, the per-class enum SolidSyslog<Class>Errors value. NativeCode is the platform's own code behind the fault, valid only when HasNativeCode is set. Severity is an independent urgency axis (how bad, now), not who-must-fix; see docs/error-severity.md.

Public Attributes Documentation

Category

uint16_t SolidSyslogErrorEvent::Category;

Detail

int32_t SolidSyslogErrorEvent::Detail;

HasNativeCode

Whether NativeCode means anything: a platform's code can be 0.

bool SolidSyslogErrorEvent::HasNativeCode;


NativeCode

The platform's own code for the fault - errno, an FRESULT, an lfs_* error... - read only when HasNativeCode is set.

int32_t SolidSyslogErrorEvent::NativeCode;


Severity

enum SolidSyslogSeverity SolidSyslogErrorEvent::Severity;

Source

const struct SolidSyslogErrorSource* SolidSyslogErrorEvent::Source;


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