|
EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
|
Indicates that an ITask did not successfully complete. More...
#include <ErrorResult.hpp>
Public Member Functions | |
| ErrorResult (std::string_view message, std::source_location location, std::unique_ptr< ITask > responsible_task) | |
| Create a new ErrorResult literally specifying the message, location, and the responsible task. | |
| ErrorResult (const LocatableError &exception, std::unique_ptr< ITask > responsible_task) | |
| Create a new ErrorResult from a LocatableError and the responsible task. | |
| ErrorResult (const ErrorResult &)=delete | |
| ErrorResult & | operator= (const ErrorResult &)=delete |
| ErrorResult (ErrorResult &&) noexcept | |
| std::string_view | what () const noexcept |
| Observes the human-readable error message. | |
| const std::source_location & | where () const noexcept |
| Observes the location of the error origin. | |
| const ITask * | observe_responsible_task () const noexcept |
| Retrieves an observing pointer to the ITask responsible for causing the ErrorResult. | |
Private Attributes | |
| std::string | message |
| std::source_location | location |
| std::unique_ptr< ITask > | responsible_task |
Indicates that an ITask did not successfully complete.
Definition at line 27 of file ErrorResult.hpp.
|
explicit |
Create a new ErrorResult literally specifying the message, location, and the responsible task.
| message | Human-readable description of the error. |
| location | Most relevant source location of the error origin. |
| responsible_task | The ITask (ownership transferred into the ErrorResult) responsible. |
Definition at line 19 of file ErrorResult.cpp.
|
explicit |
Create a new ErrorResult from a LocatableError and the responsible task.
| exception | Exception thrown from the ITask. |
| responsible_task | The ITask (ownership transferred into the ErrorResult) responsible. |
Definition at line 30 of file ErrorResult.cpp.
|
nodiscardnoexcept |
Retrieves an observing pointer to the ITask responsible for causing the ErrorResult.
nullptr if the ErrorResult does not relate to a particular ITask. Definition at line 54 of file ErrorResult.cpp.
|
nodiscardnoexcept |
Observes the human-readable error message.
Definition at line 44 of file ErrorResult.cpp.
|
nodiscardnoexcept |
Observes the location of the error origin.
Definition at line 49 of file ErrorResult.cpp.
|
private |
Definition at line 85 of file ErrorResult.hpp.
|
private |
Definition at line 84 of file ErrorResult.hpp.
|
private |
Definition at line 86 of file ErrorResult.hpp.