MLBookProc 1.1
 
Loading...
Searching...
No Matches
MLException.h
1/*
2 * Copyright (C) 2024-2025 Yury Bobylev <bobilev_yury@mail.ru>
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation, version 3.
7 *
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along with
14 * this program. If not, see <https://www.gnu.org/licenses/>.
15 */
16
17#ifndef MLEXCEPTION_H
18#define MLEXCEPTION_H
19
20#include <string>
21
28{
29public:
34
39 MLException(const std::string &msg);
40
44 MLException(const MLException &other);
45
50
55 operator=(const MLException &other);
56
62
66 operator bool();
67
72 std::string
74
75private:
76 std::string msg;
77};
78
79#endif // MLEXCEPTION_H
MLException & operator=(const MLException &other)
operator =
MLException(const std::string &msg)
MLException constructor.
MLException(const MLException &other)
MLException copy constructor.
MLException & operator=(MLException &&other)
operator =
MLException(MLException &&other)
MLException move constructor.
MLException()
MLException constructor.
std::string what()
Returns error message.