libsir 2.2.5
Standard Incident Reporter
Loading...
Searching...
No Matches
sir::error_info Struct Reference

Contains all available information about an error. More...

Inheritance diagram for sir::error_info:
[legend]

Data Fields

std::string func
 Name of the function in which the error occurred.
 
std::string file
 Name of the file in which the error occurred.
 
uint32_t line {}
 Line number at which the error occurred.
 
int os_code {}
 If an OS/libc error, the associated code.
 
std::string os_message
 If an OS/libc error, the associated message.
 
- Data Fields inherited from sir::error
uint16_t code {}
 Numeric error code (see sir_errorcode).
 
std::string message
 Formatted error message.
 

Detailed Description

Contains all available information about an error.

Provides extended information about an error that occurred in order to allow for custom error handling. If the numeric error code and default error message formatting are sufficient, use the error struct instead.

See also
error

The documentation for this struct was generated from the following file: