41#include <dar/libdar.hpp>
53 const std::string & get_message()
const {
return msg; };
54 void change_message(
const std::string & x_msg) { msg = x_msg; };
77inline exception_base * exception_memory::clone()
const {
return cloner<exception_memory>((
void *)
this); };
81#define WEBDAR_BUG exception_bug(__FILE__, __LINE__)
88 exception_bug(
const std::string & file,
int line) :
exception_base(std::string(
"WEBDAR: BUG MET IN File ") + file + std::string(
" line ") + std::to_string(line)) {};
91 virtual exception_base *clone()
const override {
return cloner<exception_bug>((
void *)
this); };
103 virtual exception_base *clone()
const override {
return cloner<exception_system>((
void *)
this); };
114 virtual exception_base *clone()
const override {
return cloner<exception_range>((
void *)
this); };
128 unsigned int get_error_code()
const {
return err; };
131 virtual exception_base *clone()
const override {
return cloner<exception_input>((
void *)
this); };
146 virtual exception_base *clone()
const override {
return cloner<exception_feature>((
void *)
this); };
157 virtual exception_base *clone()
const override {
return cloner<exception_libcall>((
void *)
this); };
168 virtual exception_base *clone()
const override {
return cloner<exception_openssl>((
void *)
this); };
171 static constexpr unsigned int ERR_BUF_LEN = 1024;
173 static std::string get_ssl_error();
184 virtual exception_base *clone()
const override {
return cloner<exception_signal>((
void *)
this); };
pure virtual class parent of all webdar exceptions
Definition: exceptions.hpp:47
class used to signal bug condition
Definition: exceptions.hpp:86
exception used to report an non-implemented feature
Definition: exceptions.hpp:141
transcription of libdar exception into the webdar exception type
Definition: exceptions.hpp:152
exception used to report memory allocation failures
Definition: exceptions.hpp:67
class used to signal SSL related errors
Definition: exceptions.hpp:163
exception used to report out or range value or argument
Definition: exceptions.hpp:109
class used to propagate the reception of a signal by the current process/thread
Definition: exceptions.hpp:179
exception used to report operating system errors
Definition: exceptions.hpp:98