EchoMap
2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
Toggle main menu visibility
Loading...
Searching...
No Matches
LocatableError.hpp
1
//
2
// Created by owd on 05/07/2026.
3
//
4
5
#ifndef ECHOMAP_LOCATABLEERROR_HPP
6
#define ECHOMAP_LOCATABLEERROR_HPP
7
8
#include <source_location>
9
#include <
stdexcept
>
10
#include <
string_view
>
11
12
namespace
echomap
13
{
14
15
class
LocatableError
:
public
std::runtime_error
16
{
17
public
:
24
explicit
LocatableError
(
25
std::string_view
message,
26
std::source_location
location =
std::source_location::current
()
27
);
28
35
[[nodiscard]]
const
std::source_location
&
where
()
const
noexcept
;
36
37
private
:
38
std::source_location
location;
39
};
40
41
}
// namespace echomap
42
43
#endif
// ECHOMAP_LOCATABLEERROR_HPP
std::string_view
echomap::LocatableError::LocatableError
LocatableError(std::string_view message, std::source_location location=std::source_location::current())
Create a new LocatableError with the given message at the given location.
Definition
LocatableError.cpp:12
echomap::LocatableError::where
const std::source_location & where() const noexcept
Retrieves the location of the throwing statement.
Definition
LocatableError.cpp:21
std::source_location::current
T current(T... args)
echomap
The main EchoMap outermost namespace for all non-exported symbols.
Definition
ActionController.hpp:20
std::runtime_error
std::source_location
stdexcept
string_view
src
errors
LocatableError.hpp
Generated by
1.17.0