24#ifndef PDCOM5_EXCEPTION_H
25#define PDCOM5_EXCEPTION_H
27#include <pdcom5_export.h>
35 using std::runtime_error::runtime_error;
42 Exception(
"Internal error, please file a bug report: " + msg)
48 using Exception::Exception;
83 using Exception::Exception;
90 Exception(
"Read failure, errno: " + std::to_string(e)), errno_(e)
96 TlsError(std::string what,
int err_code) :
97 Exception(std::move(what)), err_code_(err_code)
105 using Exception::Exception;
107 Exception(
"Write failure, errno: " + std::to_string(e)), errno_(e)
Definition: Exception.h:52
Definition: Exception.h:57
Definition: Exception.h:34
Definition: Exception.h:39
Definition: Exception.h:47
Definition: Exception.h:62
Definition: Exception.h:67
Definition: Exception.h:72
Definition: Exception.h:77
Definition: Exception.h:82
Definition: Exception.h:87
Definition: Exception.h:95
Definition: Exception.h:103