| 81 | }; |
| 82 | |
| 83 | class ServerError : public Exception |
| 84 | { |
| 85 | public: |
| 86 | ServerError(const QString& _msg) : Exception(_msg) {} |
| 87 | |
| 88 | void raise() const override { throw *this; } |
| 89 | Exception *clone() const override { return new ServerError(*this); } |
| 90 | }; |
| 91 | |
| 92 | #endif // EXCEPTION_H |