8 #ifndef _TASKS_TASKS_EXCEPTION_H_
9 #define _TASKS_TASKS_EXCEPTION_H_
96 const std::string&
message() const noexcept {
101 const char*
what() const noexcept {
129 #endif // _TASKS_TASKS_EXCEPTION_H_
Error on sendto sys call.
Error on chmod sys call (domain sockets)
Error on setsockopt sys call.
tasks_exception(tasks_error error, std::string what)
Construct an object by error_code and message.
tasks_exception()
Default contructor.
void reset()
Reset the exception.
int sys_errno() const noexcept
Return the errno if available.
Error when calling listen on a UDP socket.
tasks_exception socket_exception
Error on setsockopt sys call.
Error on listen sys call.
tasks_exception http_exception
Error on connect sys call.
tasks_exception(tasks_error error, std::string what, int sys_errno)
Contruct an object by error_code, message and errno.
const std::string & message() const noexcept
Return the error message.
const char * what() const noexcept
Return the error message.
Error when reading from a disconnected socket.
Error on accept sys call.
tasks_exception term_exception
tasks_error error_code() const noexcept
Return the error code.
Error on recvfrom sys call.
Error on socket sys call.
Error on chunked encoding, that is not available yet.
Error when trying to connect to a host that can't be resolved.