Derived class for system errors.
#include <nrg_status.h>
Public Member Functions | |
StatusErr (int e=errno) | |
Public Member Functions inherited from nrg::Status | |
Status () | |
Default Constructor, creates a no-error status. | |
Status (bool ok, int err=0) | |
Constructor with the given error-status and errno for system-errors. | |
Status (const char *custom) | |
Constructor for custom errors, with the specified error string. | |
operator bool () const | |
bool conversion operator | |
Additional Inherited Members | |
Public Types inherited from nrg::Status | |
enum | : int { Ok, InternalError, SystemError } |
Enumeration for error type. | |
Public Attributes inherited from nrg::Status | |
enum nrg::Status:: { ... } | type |
Enumeration for error type. | |
int | sys_errno |
The associated errno for the error, or 0 if not a system error. | |
const char * | desc |
Statically-allocated description of the error. | |