powerd++
0.4.4
|
Common error handling types and functions. More...
Classes | |
struct | Exception |
Exceptions bundle an exit code, errno value and message. More... | |
Enumerations | |
enum | Exit : int { Exit::OK, Exit::ECLARG, Exit::EOUTOFRANGE, Exit::ELOAD, Exit::EFREQ, Exit::EMODE, Exit::EIVAL, Exit::ESAMPLES, Exit::ESYSCTL, Exit::ENOFREQ, Exit::ECONFLICT, Exit::EPID, Exit::EFORBIDDEN, Exit::EDAEMON, Exit::EWOPEN, Exit::ESIGNAL, Exit::ERANGEFMT, Exit::ETEMPERATURE, Exit::EEXCEPT, Exit::EFILE, Exit::EEXEC, Exit::EDRIVER, Exit::ESYSCTLNAME, Exit::EFORMATFIELD, Exit::LENGTH } |
Exit codes. More... | |
Functions | |
void | fail (Exit const exitcode, int const err, std::string const &msg) |
Throws an Exception instance with the given message. More... | |
Variables | |
const char *const | ExitStr [] |
Printable strings for exit codes. More... | |
Common error handling types and functions.
struct errors::Exception |
|
strong |
Exit codes.
|
inline |
Throws an Exception instance with the given message.
exitcode | The exit code to return on termination |
err | The errno value at the time the exception was created |
msg | The message to show |
const char* const errors::ExitStr[] |
Printable strings for exit codes.