qTbot
0.2.123.6f57966
qTbot is base back end library for your c++ Qt projects.
Toggle main menu visibility
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
15
namespace
qTbot
{
16
20
class
InternalException
:
public
QException
21
{
22
// exception interface
23
public
:
28
InternalException
(
const
QByteArray& erroString = {});
29
34
const
char
*
what
()
const
noexcept
override
;
35
36
// QException interface
37
public
:
41
void
raise
()
const override
;
42
47
QException *
clone
()
const override
;
48
49
private
:
50
QByteArray _errText;
51
};
52
}
53
#endif
// INTERNALEXCEPTION_H
54
55
qTbot::InternalException::raise
void raise() const override
raise Raises the exception.
Definition
internalexception.cpp:21
qTbot::InternalException::InternalException
InternalException(const QByteArray &erroString={})
InternalException constructs the exception with an error description.
Definition
internalexception.cpp:12
qTbot::InternalException::clone
QException * clone() const override
clone Creates a copy of the exception.
Definition
internalexception.cpp:25
qTbot::InternalException::what
const char * what() const noexcept override
what Returns the text description of the error.
Definition
internalexception.cpp:17
qTbot
Definition
telegramdeletemessage.cpp:8
src
qTbot
src
public
qTbot
internalexception.h
Generated by
1.18.0