qTbot
0.2.123.6f57966
qTbot is base back end library for your c++ Qt projects.
Toggle main menu visibility
internalexception.cpp
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 "
internalexception.h
"
9
namespace
qTbot
{
10
11
12
InternalException::InternalException
(
const
QByteArray &erroString) {
13
_errText = erroString;
14
15
}
16
17
const
char
*
InternalException::what
() const noexcept {
18
return
_errText.constData();
19
}
20
21
void
InternalException::raise
()
const
{
22
throw
*
this
;
23
}
24
25
QException *
InternalException::clone
()
const
{
26
return
new
InternalException
(_errText);
27
}
28
}
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
internalexception.h
qTbot
Definition
telegramdeletemessage.cpp:8
src
qTbot
src
public
qTbot
internalexception.cpp
Generated by
1.18.0