X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fexceptions.h;h=6bf832828a58bdc301f96f1197851a8021f91694;hb=868a1a5c13a0c086aa1ff3414a1eb12076821c27;hp=6d6ad333a442bcb5690fbce59e1edf2a9bb25ec2;hpb=142e2d3b74ad886eed83b0fc9d6cfea100dae10a;p=dragonfireclient.git diff --git a/src/exceptions.h b/src/exceptions.h index 6d6ad333a..6bf832828 100644 --- a/src/exceptions.h +++ b/src/exceptions.h @@ -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,21 +115,32 @@ 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) {} }; /* Some "old-style" interrupts: */ +class InvalidNoiseParamsException : public BaseException { +public: + InvalidNoiseParamsException(): + BaseException("One or more noise parameters were invalid or require " + "too much memory") + {} + + InvalidNoiseParamsException(const std::string &s): + BaseException(s) + {} +}; + class InvalidPositionException : public BaseException { public: