cppthread 1.1.16
C++ Thread Library
exception.h
Go to the documentation of this file.
1// Copyright (c) 2013-2025 Made to Order Software Corp. All Rights Reserved
2//
3// https://snapwebsites.org/project/cppthread
4// contact@m2osw.com
5//
6// This program is free software; you can redistribute it and/or modify
7// it under the terms of the GNU General Public License as published by
8// the Free Software Foundation; either version 2 of the License, or
9// (at your option) any later version.
10//
11// This program is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14// GNU General Public License for more details.
15//
16// You should have received a copy of the GNU General Public License along
17// with this program; if not, write to the Free Software Foundation, Inc.,
18// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19#pragma once
20
28// libexcept
29//
30#include <libexcept/exception.h>
31
32
33namespace cppthread
34{
35
36
37
38DECLARE_LOGIC_ERROR(logic_error);
39
40DECLARE_OUT_OF_RANGE(out_of_range);
41
42DECLARE_MAIN_EXCEPTION(cppthread_exception);
43
44DECLARE_EXCEPTION(cppthread_exception, already_exists);
45DECLARE_EXCEPTION(cppthread_exception, in_use_error);
46DECLARE_EXCEPTION(cppthread_exception, invalid_error);
47DECLARE_EXCEPTION(cppthread_exception, invalid_log_level);
48DECLARE_EXCEPTION(cppthread_exception, mutex_failed_error);
49DECLARE_EXCEPTION(cppthread_exception, name_mismatch);
50DECLARE_EXCEPTION(cppthread_exception, not_found);
51DECLARE_EXCEPTION(cppthread_exception, not_locked_error);
52DECLARE_EXCEPTION(cppthread_exception, not_locked_once_error);
53DECLARE_EXCEPTION(cppthread_exception, not_started);
54DECLARE_EXCEPTION(cppthread_exception, system_error);
55
56
57
58} // namespace cppthread
59// vim: ts=4 sw=4 et
To catch any thread exception, catch this base thread exception.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.