#include <stdexcept>
#include <string>
Go to the source code of this file.
Classes | |
class | GG::ExceptionBase |
The base class for all GG exceptions. More... | |
Namespaces | |
namespace | GG |
Defines | |
#define | GG_EXCEPTION(name) |
#define | GG_ABSTRACT_EXCEPTION(name) |
#define | GG_CONCRETE_EXCEPTION(name, class_name, superclass) |
Definition in file Exception.h.
#define GG_EXCEPTION | ( | name | ) |
Value:
class GG_API name : public ExceptionBase \ { \ public: \ name () throw() : ExceptionBase() {} \ name (const std::string& msg) throw() : ExceptionBase(msg) {} \ virtual const char* type() const throw() \ {return "GG::" # name ;} \ };
Definition at line 75 of file Exception.h.
#define GG_ABSTRACT_EXCEPTION | ( | name | ) |
Value:
class GG_API name : public ExceptionBase \ { \ public: \ name () throw() : ExceptionBase() {} \ name (const std::string& msg) throw() : ExceptionBase(msg) {} \ virtual const char* type() const throw() = 0; \ };
Definition at line 88 of file Exception.h.
#define GG_CONCRETE_EXCEPTION | ( | name, | |||
class_name, | |||||
superclass | ) |
Value:
class GG_API name : public superclass \ { \ public: \ name () throw() : superclass () {} \ name (const std::string& msg) throw() : superclass (msg) {} \ virtual const char* type() const throw() \ {return # class_name "::" # name ;} \ };
Definition at line 100 of file Exception.h.