1#ifndef EXCEPTION_DEFINED
2#define EXCEPTION_DEFINED
8#define EXCEPTION(message) \
9 sisi4s::DetailedException((message), __FILE__, __LINE__)
10#define Assert(condition, message) \
11 if (!(condition)) throw new EXCEPTION(message);
22 std::string
const &file_,
29 std::string
const &file_,
37 std::string
const &file_,
39 : message(stream_.str())
44 std::stringstream sStream;
45 sStream << message << std::endl <<
"\tat " << file <<
":" << line;
46 if (column > 0) sStream <<
":" << column;
51 std::string message, file;
Definition Exception.hpp:19
DetailedException(std::stringstream const &stream_, std::string const &file_, int line_)
Definition Exception.hpp:36
DetailedException(std::string const &message_, std::string const &file_, int line_)
Definition Exception.hpp:21
virtual std::string getMessage()
Definition Exception.hpp:43
virtual ~DetailedException()
Definition Exception.hpp:42
DetailedException(std::string const &message_, std::string const &file_, int line_, int column_)
Definition Exception.hpp:28
Definition Exception.hpp:14
virtual std::string getMessage()=0
Definition Algorithm.hpp:10