/
gsim047
/
udklib
Обзор
Документация
Войти
/
gsim047
/
udklib
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
udk/nError.h
28 строк
578 B
Georgiy
first udk pack
17 июл 2018, 17:24
17 июл 2018, 17:24
a4ff2f3
Код
Авторство
О чём код?
#ifndef __nError_h #define __nError_h 1 #include <exception> #include <string> using std::string; // error classes & functions namespace nError { class Message : public string, public std::exception // Base error class { public: Message(const string &s) : string(s) {}; virtual ~Message() throw(); // {}; };// class Message //inline void Throw(const Message &e) { Message m(e); throw m; }; //inline void Throw(const string &s) { Message m(s); throw m; }; void Throw(const Message &e); void Throw(const string &s); }// namespace nError #endif // __nError_h