]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/exceptions.h
Print --videomodes response to standard output, too
[dragonfireclient.git] / src / exceptions.h
index abd8c68ae31ee9b0917eb8fd529e6b826a425f16..4f18f70d97c0ec38db9da8e6ab5bd14204393f44 100644 (file)
@@ -70,6 +70,11 @@ class SerializationError : public BaseException {
        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) {}
@@ -110,17 +115,22 @@ class ServerError : public BaseException {
        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(std::string s): BaseException(s) {}
 };
 
-class ClientStateError : public BaseException {
+class PrngException : public BaseException {
 public:
-       ClientStateError(std::string s): BaseException(s) {}
+       PrngException(std::string s): BaseException(s) {}
 };
 
+class ModError : public BaseException {
+public:
+       ModError(const std::string &s): BaseException(s) {}
+};
+
+
 /*
        Some "old-style" interrupts:
 */