Cbeam
Loading...
Searching...
No Matches
base_error.hpp
Go to the documentation of this file.
1
/*
2
Copyright (c) 2025 acrion innovations GmbH
3
Authors: Stefan Zipproth, s.zipproth@acrion.ch
4
5
This file is part of Cbeam, see https://github.com/acrion/cbeam and https://cbeam.org
6
7
Cbeam is offered under a commercial and under the AGPL license.
8
For commercial licensing, contact us at https://acrion.ch/sales. For AGPL licensing, see below.
9
10
AGPL licensing:
11
12
Cbeam is free software: you can redistribute it and/or modify
13
it under the terms of the GNU Affero General Public License as published by
14
the Free Software Foundation, either version 3 of the License, or
15
(at your option) any later version.
16
17
Cbeam is distributed in the hope that it will be useful,
18
but WITHOUT ANY WARRANTY; without even the implied warranty of
19
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
GNU Affero General Public License for more details.
21
22
You should have received a copy of the GNU Affero General Public License
23
along with Cbeam. If not, see <https://www.gnu.org/licenses/>.
24
*/
25
26
#pragma once
27
28
#include <exception>
29
30
namespace
cbeam::error
31
{
40
class
base_error
:
public
virtual
std::exception
41
{
42
public
:
46
base_error
() =
default
;
47
51
~base_error
()
override
=
default
;
52
58
const
char
*
what
() const noexcept
override
59
{
60
return
"cbeam::error::base_error"
;
61
}
62
};
63
}
cbeam::error::base_error::base_error
base_error()=default
Default constructor.
cbeam::error::base_error::~base_error
~base_error() override=default
Virtual destructor.
cbeam::error::base_error::what
const char * what() const noexcept override
Returns a generic explanatory string for all Cbeam base errors.
Definition
base_error.hpp:58
cbeam::error
Defines Cbeam-specific exception types that behave like their standard counterparts....
Definition
base_error.hpp:31
include
cbeam
error
base_error.hpp
Generated by
1.13.2