qTbot 0.2.123.6f57966
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-2026 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:
28 InternalException(const QByteArray& erroString = {});
29
34 const char *what() const noexcept override;
35
36 // QException interface
37public:
41 void raise() const override;
42
47 QException *clone() const override;
48
49private:
50 QByteArray _errText;
51};
52}
53#endif // INTERNALEXCEPTION_H
54
55
void raise() const override
raise Raises the exception.
InternalException(const QByteArray &erroString={})
InternalException constructs the exception with an error description.
QException * clone() const override
clone Creates a copy of the exception.
const char * what() const noexcept override
what Returns the text description of the error.