EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
Loading...
Searching...
No Matches
LocatableError.cpp
1//
2// Created by owd on 05/07/2026.
3//
4
5#include "LocatableError.hpp"
6
7#include <string>
8
9namespace echomap
10{
11
13 const std::string_view message,
14 const std::source_location location
15) :
16 std::runtime_error(std::string(message)),
17 location(location)
18{
19}
20
22{
23 return location;
24}
25
26} // namespace echomap
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.
The main EchoMap outermost namespace for all non-exported symbols.
STL namespace.
T runtime_error(T... args)