qTbot 0.2.106.03782ba
qTbot is base back end library for your c++ Qt projects.
internalexception.cpp
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 "internalexception.h"
9namespace qTbot {
10
11
12InternalException::InternalException(const QByteArray &erroString) {
13 _errText = erroString;
14
15}
16
17const char *InternalException::what() const noexcept {
18 return _errText.constData();
19}
20
22 throw *this;
23}
24
25QException *InternalException::clone() const {
26 return new InternalException(_errText);
27}
28}
The InternalException class contais string value to describe what happened.
void raise() const override
InternalException(const QByteArray &erroString={})
QException * clone() const override
const char * what() const noexcept override