|
RealTimeTransport 1.0.0
Real-time simulation of quantum transport processes
|
#include <RealTimeTransport/Error.h>
This class represents the result of a computation that didn't meet a required accuracy goal. The class contains an error message and the preliminary result of the computation.
| T | Result type of the computation. |
Public Member Functions | |
| 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. | |
| AccuracyError (Error &&error, T &&value) | |
| Constructs an error from an error instance and a preliminary value. | |
| T & | value () noexcept |
| Return the preliminary result of the computation. | |
| const T & | value () const noexcept |
| Return the preliminary result of the computation. | |
Public Member Functions inherited from RealTimeTransport::Error | |
| Error () noexcept | |
| Default constructor. | |
| Error (const std::string &message, std::source_location location=std::source_location::current()) | |
| Constructs an error with a given message. | |
| Error (Error &&other) noexcept | |
| Move constructor. | |
| Error & | operator= (Error &&other) noexcept |
| Move assignment operator. | |
| const char * | what () const noexcept override |
| Returns the error message. | |