aboutsummaryrefslogtreecommitdiff
path: root/server-v1/source/EpistmoolServer/Protocol/Error.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-06-27 00:13:08 +0000
committerrtk0c <[email protected]>2022-06-27 00:13:08 +0000
commit8a23aa89a58d3a90d5851b449b5552e1fcdcaded (patch)
tree86a527705eafe1ba36d6d5744afeddad196c0eeb /server-v1/source/EpistmoolServer/Protocol/Error.hpp
parent9ad9af9f2596b91e1dd65e71543f75b0644e8283 (diff)
(From git) Initial server setup
git-svn-id: file:///home/arch/svn/epistmool/trunk@4 71f44415-077c-4ad7-a976-72ddbf76608f
Diffstat (limited to 'server-v1/source/EpistmoolServer/Protocol/Error.hpp')
-rw-r--r--server-v1/source/EpistmoolServer/Protocol/Error.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/server-v1/source/EpistmoolServer/Protocol/Error.hpp b/server-v1/source/EpistmoolServer/Protocol/Error.hpp
new file mode 100644
index 0000000..1ddedf9
--- /dev/null
+++ b/server-v1/source/EpistmoolServer/Protocol/Error.hpp
@@ -0,0 +1,21 @@
+#pragma once
+
+#include "EpistmoolServer/Protocol/Version.hpp"
+
+#include <QLatin1String>
+#include <QVersionNumber>
+
+namespace Epistmool::Server {
+struct ProtocolError
+{
+ QVersionNumber since;
+ QLatin1String name;
+};
+
+namespace ProtocolErrors {
+ const ProtocolError kUnsupportedVersion{
+ .since = ProtocolVersions::v0_1,
+ .name = QLatin1String("unsupportedVersion"),
+ };
+}
+} // namespace Epistmool::Server