8 #ifndef _TASKS_ERROR_BASE_H_
9 #define _TASKS_ERROR_BASE_H_
69 #endif // _TASKS_ERROR_BASE_H_
void reset_error()
Reset the error state.
int sys_errno() const
Return the errno if available.
tasks_exception m_exception
tasks_error error_code() const
Return the error code.
bool error() const
Return true if an error occured.
A helper class for basic error reporting.
void reset()
Reset the exception.
const std::string & error_message() const
Return the error message.
int sys_errno() const noexcept
Return the errno if available.
std::string sys_errno_str() const
Return the errno description if available.
const std::string & message() const noexcept
Return the error message.
void set_exception(tasks_exception &e)
Set an exception to report an error.
tasks_error error_code() const noexcept
Return the error code.
const tasks_exception & exception() const
Return the underlying exception object.