cluck
1.0.1
The cluster lock service.
cluck
exception.h
Go to the documentation of this file.
1
// Copyright (c) 2016-2025 Made to Order Software Corp. All Rights Reserved
2
//
3
// This program is free software: you can redistribute it and/or modify
4
// it under the terms of the GNU General Public License as published by
5
// the Free Software Foundation, either version 3 of the License, or
6
// (at your option) any later version.
7
//
8
// This program is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
// GNU General Public License for more details.
12
//
13
// You should have received a copy of the GNU General Public License
14
// along with this program. If not, see <https://www.gnu.org/licenses/>.
15
#pragma once
16
17
// libexcept
18
//
19
#include <libexcept/exception.h>
20
21
22
23
namespace
cluck
24
{
25
26
27
DECLARE_LOGIC_ERROR
(logic_error);
// LCOV_EXCL_LINE
28
DECLARE_LOGIC_ERROR
(unexpected_case);
29
DECLARE_OUT_OF_RANGE
(out_of_range);
30
31
DECLARE_MAIN_EXCEPTION
(cluck_exception);
32
33
DECLARE_EXCEPTION
(cluck_exception, busy);
34
DECLARE_EXCEPTION
(cluck_exception, invalid_message);
35
DECLARE_EXCEPTION
(cluck_exception, invalid_parameter);
36
DECLARE_EXCEPTION
(cluck_exception, timeout);
37
38
39
}
// namespace cluck
40
// vim: ts=4 sw=4 et
cluck
Definition
version.h:30
cluck::DECLARE_LOGIC_ERROR
DECLARE_LOGIC_ERROR(logic_error)
cluck::DECLARE_OUT_OF_RANGE
DECLARE_OUT_OF_RANGE(out_of_range)
cluck::DECLARE_EXCEPTION
DECLARE_EXCEPTION(cluck_exception, busy)
cluck::DECLARE_MAIN_EXCEPTION
DECLARE_MAIN_EXCEPTION(cluck_exception)
This document is part of the
Snap! Websites Project
.
Copyright by
Made to Order Software Corp.