pica/database/exceptions.cpp

21 lines
462 B
C++
Raw Normal View History

2023-12-22 23:25:20 +00:00
// SPDX-FileCopyrightText: 2023 Yury Gubich <blue@macaw.me>
// SPDX-License-Identifier: GPL-3.0-or-later
#include "exceptions.h"
2023-12-29 17:40:00 +00:00
DB::Duplicate::Duplicate(const std::string& text):
2023-12-22 23:25:20 +00:00
std::runtime_error(text)
{}
2023-12-29 17:40:00 +00:00
DB::DuplicateLogin::DuplicateLogin(const std::string& text):
2023-12-22 23:25:20 +00:00
Duplicate(text)
{}
2023-12-29 17:40:00 +00:00
DB::EmptyResult::EmptyResult(const std::string& text):
2023-12-22 23:25:20 +00:00
std::runtime_error(text)
{}
2023-12-29 17:40:00 +00:00
DB::NoLogin::NoLogin(const std::string& text):
2023-12-22 23:25:20 +00:00
EmptyResult(text)
{}