|
TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
|
#include <triqs/utility/exceptions.hpp>
Generic runtime error thrown in TRIQS.
Specialization of triqs::exception used for the most common error case. It only overrides operator<<() so that chained calls return a triqs::runtime_error reference instead of a triqs::exception reference.
Definition at line 151 of file exceptions.hpp.
Public Member Functions | |
| runtime_error () noexcept | |
| Default constructor creates a runtime error with an empty diagnostic message. | |
| virtual | ~runtime_error () noexcept |
| Virtual default destructor. | |
| template<typename T> | |
| runtime_error & | operator<< (T const &x) |
| Append a value to the accumulated diagnostic message. | |
| Public Member Functions inherited from triqs::exception | |
| exception () noexcept | |
| Default constructor ceates an exception with an empty diagnostic message and an empty stack trace. | |
| exception (exception const &e) noexcept | |
| Copy constructor copies the accumulated diagnostic message, the captured stack trace and the cached what() string from another exception. | |
| virtual | ~exception () noexcept |
| Virtual default destructor. | |
| exception & | operator<< (const char *mess) |
| Append a C string to the accumulated diagnostic message. | |
| template<typename T> | |
| exception & | operator<< (T const &x) |
| Append a value to the accumulated diagnostic message. | |
| virtual const char * | trace () const noexcept |
| Get the captured stack trace. | |
| virtual const char * | what () const noexcept |
| Build and return the full diagnostic message. | |
|
inline |
Append a value to the accumulated diagnostic message.
| T | Type streamable into a std::ostream. |
| x | Value to append to the message. |
Definition at line 166 of file exceptions.hpp.