/
fluffymax2005
/
libwgcpp
Обзор
Документация
Войти
/
fluffymax2005
/
libwgcpp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
1
CI/CD
Аналитика
Безопасность
libwgcpp-1.0.0
src/wgexception.cpp
34 строки
1 KB
fluffymax2005
Copyright notice added to each lib file
01 авг 2026, 11:49
01 авг 2026, 11:49
2397b00
Код
Авторство
О чём код?
/* * libwgcpp — C++ wrapper for embeddable-wg-library * Copyright (C) 2026 Ledovskiy Maksim aka fluffymax2005 <santech_montage@mail.ru> * * This file is part of libwgcpp. * * libwgcpp is free software: you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation, * either version 3 of the License, or (at your option) any later version. * * libwgcpp is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with libwgcpp. If not, see <https://www.gnu.org/licenses/>. */ #include "wgexception.h" WgException::WgException(const std::string& message, int error_code) : std::runtime_error(message + ". Error code = " + std::to_string(error_code)) , code{error_code} { } const char* WgException::what() const noexcept { return std::runtime_error::what(); } int WgException::getCode() const noexcept { return code; }