aboutsummaryrefslogtreecommitdiff
path: root/server-v1/source/EpistmoolServer/Protocol/Error.hpp
diff options
context:
space:
mode:
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