ChimeraTK-DeviceAccess
03.18.00
Exception.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Deutsches Elektronen-Synchrotron DESY, MSK, ChimeraTK Project <chimeratk-support@desy.de>
2
// SPDX-License-Identifier: LGPL-3.0-or-later
3
#pragma once
4
5
#include <exception>
6
#include <string>
7
8
namespace
ChimeraTK
{
9
18
class
runtime_error
:
public
std::exception {
19
public
:
24
explicit
runtime_error
(std::string message) noexcept;
25
31
[[nodiscard]]
const
char
*
what
()
const
noexcept
override
;
32
33
private
:
34
std::string _message;
35
};
36
51
class
logic_error
:
public
std::exception {
52
public
:
57
explicit
logic_error
(std::string message) noexcept;
58
64
[[nodiscard]]
const
char
*
what
()
const
noexcept
override
;
65
66
private
:
67
std::string _message;
68
};
69
70
}
// namespace ChimeraTK
ChimeraTK::runtime_error::what
const char * what() const noexcept override
Return the message describing what exactly went wrong.
Definition:
Exception.cpp:14
ChimeraTK::runtime_error
Exception thrown when a runtime error has occured.
Definition:
Exception.h:18
ChimeraTK::runtime_error::runtime_error
runtime_error(std::string message) noexcept
Constructor.
Definition:
Exception.cpp:12
ChimeraTK::logic_error::what
const char * what() const noexcept override
Return the message describing what exactly went wrong.
Definition:
Exception.cpp:20
ChimeraTK::logic_error::logic_error
logic_error(std::string message) noexcept
Constructor.
Definition:
Exception.cpp:18
ChimeraTK
Definition:
DummyBackend.h:16
ChimeraTK::logic_error
Exception thrown when a logic error has occured.
Definition:
Exception.h:51
sources
ChimeraTK-DeviceAccess
include
Exception.h
Generated by
1.8.17