Patronum
Loading...
Searching...
No Matches
Patronum_global.cpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018-2025 QuasarApp.
3 * Distributed under the lgplv3 software license, see the accompanying
4 * Everyone is permitted to copy and distribute verbatim copies
5 * of this license document, but changing it is not allowed.
6*/
7
8#include "Patronum_global.h"
9#include <QObject>
10
11namespace Patronum {
12
14 switch (error) {
16 return QObject::tr("Service is unavailable. Try send start comand or restart the service manually.");
17
19 return QObject::tr("Invalid package received");
20
22 return QObject::tr("Library unsupported command received");
23
25 return QObject::tr("Internal error of the work of the Patronum library."
26 " Contact the developers and provide them with an error report."
27 " https://github.com/QuasarApp/Patronum/issues");
28
30 return QObject::tr("Timeout error. service unavailable or not started.");
31
33 return QObject::tr("Failed to start service");
34
36 return QObject::tr("The service not supportded using platform.");
37 default:
38 return QObject::tr("Unknown error");
39 }
40}
41
42}
The Patronum namespace - It is main name space of Patronum Library. The Patronum library support the ...
QString errorToString(PatronumError error)
errorToString This method convert the PatronumError to QString.
PatronumError
The PatronumError enum - controller work error codes.
@ FailedToStart
This error ocured when user srvice failed to start.
@ ServiceUnavailable
Service is unavailable. Try send start command or restart the service manually.
@ SystemError
Internal error of the work of the Patronum library. Contact the developers and provide them with an e...
@ WrongCommand
Library unsupported command received.
@ TimeOutError
Timeout error. service unavailable or not started.
@ UnsupportedPlatform
This error ocured when service not supportded using platform.
@ InvalidPackage
Invalid package received.