10 #ifndef __SOT_ABSTRACT_EXCEPTION_H
11 #define __SOT_ABSTRACT_EXCEPTION_H
47 PATTERN_GENERATOR = 800
52 return EXCEPTION_NAME;
81 const char *
what()
const throw();
87 #ifdef SOT_EXCEPTION_PASSING_PARAM
91 static const int BUFFER_SIZE = 80;
93 const char *functionPTR;
94 char function[BUFFER_SIZE];
97 char file[BUFFER_SIZE];
98 bool pointersSet, set;
101 Param(
const int &_line,
const char *_function,
const char *_file);
102 Param(
void) : pointersSet(
false), set(
false) {}
103 Param &initCopy(
const Param &p);
110 friend const Exc &operator+(
const ExceptionAbstract::Param &p,
const Exc &e) {
115 friend Exc &operator+(
const ExceptionAbstract::Param &p, Exc &e) {
122 #define SOT_RETHROW \
123 (const ExceptionAbstract &err) { throw err; }
125 #ifdef SOT_EXCEPTION_PASSING_PARAM
127 throw ExceptionAbstract::Param(__LINE__, __FUNCTION__, __FILE__) +
129 #define SOT_THROW throw
#define SOT_CORE_EXPORT
Definition: api.hh:20
Definition: exception-abstract.hh:36
const std::string & getStringMessage(void)
int code
Definition: exception-abstract.hh:58
virtual const std::string & getExceptionName(void) const
Definition: exception-abstract.hh:51
ExceptionAbstract(const int &code, const std::string &msg="")
ExceptionEnum
Definition: exception-abstract.hh:38
virtual ~ExceptionAbstract(void)
Definition: exception-abstract.hh:69
std::string message
Definition: exception-abstract.hh:61
static const std::string EXCEPTION_NAME
Definition: exception-abstract.hh:50
const char * getMessage(void)
const char * what() const
Definition: abstract-sot-external-interface.hh:17