class BaseException : public std::exception
{
public:
- BaseException(const std::string &s) throw()
- {
- m_s = s;
- }
+ BaseException(const std::string &s) throw(): m_s(s) {}
~BaseException() throw() {}
virtual const char * what() const throw()
{
FileNotGoodException(const std::string &s): BaseException(s) {}
};
+class DatabaseException : public BaseException {
+public:
+ DatabaseException(const std::string &s): BaseException(s) {}
+};
+
class SerializationError : public BaseException {
public:
SerializationError(const std::string &s): BaseException(s) {}
};
+class PacketError : public BaseException {
+public:
+ PacketError(const std::string &s): BaseException(s) {}
+};
+
class LoadError : public BaseException {
public:
LoadError(const std::string &s): BaseException(s) {}
ServerError(const std::string &s): BaseException(s) {}
};
-// Only used on Windows (SEH)
-class FatalSystemException : public BaseException {
+class ClientStateError : public BaseException {
public:
- FatalSystemException(const std::string &s): BaseException(s) {}
+ ClientStateError(const std::string &s): BaseException(s) {}
};
-class ClientStateError : public BaseException {
+class PrngException : public BaseException {
public:
- ClientStateError(std::string s): BaseException(s) {}
+ PrngException(const std::string &s): BaseException(s) {}
};
+class ModError : public BaseException {
+public:
+ ModError(const std::string &s): BaseException(s) {}
+};
+
+
/*
Some "old-style" interrupts:
*/