libtasks Documentation  1.6
tasks::tasks_exception Class Reference

Tasks execption class. More...

#include <tasks_exception.h>

Inheritance diagram for tasks::tasks_exception:
Collaboration diagram for tasks::tasks_exception:

Public Member Functions

 tasks_exception ()
 Default contructor. More...
 
 tasks_exception (tasks_error error, std::string what, int sys_errno)
 Contruct an object by error_code, message and errno. More...
 
 tasks_exception (tasks_error error, std::string what)
 Construct an object by error_code and message. More...
 
tasks_error error_code () const noexcept
 Return the error code. More...
 
int sys_errno () const noexcept
 Return the errno if available. More...
 
const std::string & message () const noexcept
 Return the error message. More...
 
const char * what () const noexcept
 Return the error message. More...
 
void reset ()
 Reset the exception. More...
 

Private Attributes

tasks_error m_error = tasks_error::UNSET
 
std::string m_what
 
int m_sys_errno = 0
 

Detailed Description

Tasks execption class.

Definition at line 73 of file tasks_exception.h.

Constructor & Destructor Documentation

tasks::tasks_exception::tasks_exception ( )
inline

Default contructor.

Definition at line 76 of file tasks_exception.h.

tasks::tasks_exception::tasks_exception ( tasks_error  error,
std::string  what,
int  sys_errno 
)
inline

Contruct an object by error_code, message and errno.

Definition at line 79 of file tasks_exception.h.

tasks::tasks_exception::tasks_exception ( tasks_error  error,
std::string  what 
)
inline

Construct an object by error_code and message.

Definition at line 83 of file tasks_exception.h.

Member Function Documentation

tasks_error tasks::tasks_exception::error_code ( ) const
inlinenoexcept

Return the error code.

Definition at line 86 of file tasks_exception.h.

Here is the caller graph for this function:

const std::string& tasks::tasks_exception::message ( ) const
inlinenoexcept

Return the error message.

Definition at line 96 of file tasks_exception.h.

Here is the caller graph for this function:

void tasks::tasks_exception::reset ( )
inline

Reset the exception.

Definition at line 106 of file tasks_exception.h.

Here is the caller graph for this function:

int tasks::tasks_exception::sys_errno ( ) const
inlinenoexcept

Return the errno if available.

Definition at line 91 of file tasks_exception.h.

Here is the caller graph for this function:

const char* tasks::tasks_exception::what ( ) const
inlinenoexcept

Return the error message.

Definition at line 101 of file tasks_exception.h.

Here is the caller graph for this function:

Member Data Documentation

tasks_error tasks::tasks_exception::m_error = tasks_error::UNSET
private

Definition at line 113 of file tasks_exception.h.

int tasks::tasks_exception::m_sys_errno = 0
private

Definition at line 115 of file tasks_exception.h.

std::string tasks::tasks_exception::m_what
private

Definition at line 114 of file tasks_exception.h.


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