Skip to content

File SolidSyslogStreamSenderErrors.h

FileList > Core > Interface > SolidSyslogStreamSenderErrors.h

Error codes and Source identity for the StreamSender.

  • #include <stdint.h>
  • #include "SolidSyslogExternC.h"

Public Types Documentation

SolidSyslogStreamSenderErrors

Detail codes for events whose Source is SolidSyslogStreamSenderErrorSource.

enum SolidSyslogStreamSenderErrors {
    SOLIDSYSLOG_STREAM_SENDER_ERROR_NULL_CONFIG,
    SOLIDSYSLOG_STREAM_SENDER_ERROR_NULL_RESOLVER,
    SOLIDSYSLOG_STREAM_SENDER_ERROR_NULL_STREAM,
    SOLIDSYSLOG_STREAM_SENDER_ERROR_NULL_ADDRESS,
    SOLIDSYSLOG_STREAM_SENDER_ERROR_POOL_EXHAUSTED,
    SOLIDSYSLOG_STREAM_SENDER_ERROR_UNKNOWN_DESTROY,
    SOLIDSYSLOG_STREAM_SENDER_ERROR_DELIVERY_FAILED,
    SOLIDSYSLOG_STREAM_SENDER_ERROR_DELIVERY_RESTORED,
    SOLIDSYSLOG_STREAM_SENDER_ERROR_MAX
};

A handler reads these off event->Detail after matching event->Source; the members name their own fault.


Public Attributes Documentation

SolidSyslogStreamSenderErrorSource

The identity for events raised by a StreamSender.

const struct SolidSyslogErrorSource SolidSyslogStreamSenderErrorSource;

A handler matches by address (event->Source == &SolidSyslogStreamSenderErrorSource), then reads event->Detail as an enum SolidSyslogStreamSenderErrors.


Public Functions Documentation

SolidSyslogStreamSenderErrors_Name

The detail's name, read beside the category's: NULL_CONFIG for SOLIDSYSLOG_STREAM_SENDER_ERROR_NULL_CONFIG.

const char * SolidSyslogStreamSenderErrors_Name (
    int32_t detail
) 

NULL for a code outside the enum.



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