R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BException.h
Go to the documentation of this file.
1#pragma once
2
3// TODO: C++20
4// use std::source_location
5#include <boost/assert/source_location.hpp>
6#include <stdexcept>
7#include <string>
8
9namespace R3B
10{
11
12 class runtime_error : public std::runtime_error
13 {
14 public:
15 explicit runtime_error(const std::string& err, const boost::source_location& loc = BOOST_CURRENT_LOCATION);
16 };
17
18 class logic_error : public std::logic_error
19 {
20 public:
21 explicit logic_error(const std::string& err, const boost::source_location& loc = BOOST_CURRENT_LOCATION);
22 };
23} // namespace R3B
logic_error(const std::string &err, const boost::source_location &loc=BOOST_CURRENT_LOCATION)
runtime_error(const std::string &err, const boost::source_location &loc=BOOST_CURRENT_LOCATION)