EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
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
12namespace echomap
13{
14
16{
17public:
24 explicit LocatableError(
25 std::string_view message,
27 );
28
35 [[nodiscard]] const std::source_location& where() const noexcept;
36
37private:
38 std::source_location location;
39};
40
41} // namespace echomap
42
43#endif // ECHOMAP_LOCATABLEERROR_HPP
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.
const std::source_location & where() const noexcept
Retrieves the location of the throwing statement.
T current(T... args)
The main EchoMap outermost namespace for all non-exported symbols.