From 8a23aa89a58d3a90d5851b449b5552e1fcdcaded Mon Sep 17 00:00:00 2001 From: rtk0c Date: Mon, 27 Jun 2022 00:13:08 +0000 Subject: (From git) Initial server setup git-svn-id: file:///home/arch/svn/epistmool/trunk@4 71f44415-077c-4ad7-a976-72ddbf76608f --- server-v1/source/EpistmoolServer/Protocol/Error.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 server-v1/source/EpistmoolServer/Protocol/Error.hpp (limited to 'server-v1/source/EpistmoolServer/Protocol/Error.hpp') 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 +#include + +namespace Epistmool::Server { +struct ProtocolError +{ + QVersionNumber since; + QLatin1String name; +}; + +namespace ProtocolErrors { + const ProtocolError kUnsupportedVersion{ + .since = ProtocolVersions::v0_1, + .name = QLatin1String("unsupportedVersion"), + }; +} +} // namespace Epistmool::Server -- cgit v1.2.3-70-g09d2