13#ifndef REAL_TIME_TRANSPORT_ERROR_H
14#define REAL_TIME_TRANSPORT_ERROR_H
16#include <source_location>
23namespace RealTimeTransport
43 virtual ~Error()
noexcept;
69 const std::string& message,
#define REALTIMETRANSPORT_EXPORT
Definition RealTimeTransport_export.h:15
Class representing the result of a computation that didn't meet a required accuracy goal.
Definition Error.h:65
const T & value() const noexcept
Return the preliminary result of the computation.
Definition Error.h:88
T & value() noexcept
Return the preliminary result of the computation.
Definition Error.h:82
AccuracyError(Error &&error, T &&value)
Constructs an error from an error instance and a preliminary value.
Definition Error.h:77
AccuracyError(const std::string &message, T &&value, std::source_location location=std::source_location::current())
Constructs an error with a message and a preliminary value.
Definition Error.h:68
This class represents a generic error.
Definition Error.h:32
Error() noexcept
Default constructor.
Error(Error &&other) noexcept
Move constructor.
const char * what() const noexcept override
Returns the error message.
Error(const std::string &message, std::source_location location=std::source_location::current())
Constructs an error with a given message.
Error & operator=(Error &&other) noexcept
Move assignment operator.