|
libwreport
3.29
|
Report a system error message. More...
#include <error.h>
Public Member Functions | |
| error_system (const std::string &msg) | |
| Create an exception taking further information from errno. More... | |
| error_system (const std::string &msg, int errno_val) | |
| Create an exception taking further information from an explicit errno value. More... | |
Public Member Functions inherited from wreport::errors::StringBase< WR_ERR_SYSTEM > | |
| StringBase (const std::string &msg) noexcept | |
| ErrorCode | code () const noexcept override |
| Exception-specific error code. More... | |
| const char * | what () const noexcept override |
| Error message. | |
Public Member Functions inherited from wreport::error | |
| virtual ErrorCode | code () const noexcept=0 |
| Exception-specific error code. More... | |
| virtual const char * | what () const noexcept=0 |
| Error message. | |
Static Public Member Functions | |
| static void | throwf (const char *fmt,...) WREPORT_THROWF_ATTRS(1 |
| Throw the exception, building the message printf-style. | |
Static Public Member Functions inherited from wreport::error | |
| static const char * | strerror (ErrorCode code) |
| String description for an error code. | |
Additional Inherited Members | |
Data Fields inherited from wreport::errors::StringBase< WR_ERR_SYSTEM > | |
| std::string | msg |
| error message returned by what() | |
Report a system error message.
The message description will be looked up using the current value of errno.
| wreport::error_system::error_system | ( | const std::string & | msg | ) |
Create an exception taking further information from errno.
| msg | error message |
| wreport::error_system::error_system | ( | const std::string & | msg, |
| int | errno_val | ||
| ) |
Create an exception taking further information from an explicit errno value.
| msg | error message |
| errno_val | explicit errno value |