FFL  1.0
Finfly Foundation Library
failure.h
00001 /* $Id: failure.h 2926 2013-02-05 19:07:32Z roma $ */
00002 
00003 #include "../ipc/socket.h"
00004 
00005 namespace ffl
00006 {
00007 
00008         namespace cssc
00009         {
00010 
00024                 class failure:public std::exception
00025                 {
00026                 public:
00027 
00028                         std::string Domain;
00029                         std::string Code;
00030                         std::string Message;
00031 
00032                         failure() throw(){}
00033 
00034                         failure(const char* _domain, const char* _code, const char* _message) throw(...):
00035                         Domain(_domain), Code(_code), Message(_message){}
00036 
00037                         failure(const std::string& _domain, const std::string& _code, const std::string& _message) throw(...):
00038                         Domain(_domain), Code(_code), Message(_message){}
00039 
00040                         failure(ipc::socket& _s, long _iotimeout = -1) throw(...){receive(_s, _iotimeout);}
00041 
00042                         void send(ipc::socket& _s, long _t = -1) const throw(...);
00043 
00044                         void receive(ipc::socket& _s, long _iotimeout = -1) throw(...);
00045 
00046                 };
00047 
00048 
00049 
00050         }
00051 
00052 }
 Указатель Классы Пространства имен Файлы Функции Переменные Определения типов Перечисления Элементы перечислений Макросы