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.cpp
1
//
2
// Created by owd on 05/07/2026.
3
//
4
5
#include "LocatableError.hpp"
6
7
#include <
string
>
8
9
namespace
echomap
10
{
11
12
LocatableError::LocatableError
(
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
21
const
std::source_location
&
LocatableError::where
() const noexcept
22
{
23
return
location;
24
}
25
26
}
// namespace echomap
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
echomap
The main EchoMap outermost namespace for all non-exported symbols.
Definition
ActionController.hpp:20
std
STL namespace.
std::runtime_error::runtime_error
T runtime_error(T... args)
std::source_location
string
src
errors
LocatableError.cpp
Generated by
1.17.0