qTbot 0.2.106.03782ba
qTbot is base back end library for your c++ Qt projects.
internalexception.h
Go to the documentation of this file.
1//#
2//# Copyright (C) 2023-2024 QuasarApp.
3//# Distributed under the GPLv3 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 <QException>
9#include <QNetworkReply>
10
11#ifndef INTERNALEXCEPTION_H
12#define INTERNALEXCEPTION_H
13
14
15namespace qTbot {
16
20class InternalException: public QException
21{
22 // exception interface
23public:
24 InternalException(const QByteArray& erroString = {});
25
26 const char *what() const noexcept override;
27
28 // QException interface
29public:
30 void raise() const override;
31 QException *clone() const override;
32
33private:
34 QByteArray _errText;
35};
36}
37#endif // INTERNALEXCEPTION_H
38
39
The InternalException class contais string value to describe what happened.
void raise() const override
QException * clone() const override
const char * what() const noexcept override