|
TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
|
#include <triqs/utility/exceptions.hpp>
Exception raised when the user interrupts the program with Ctrl-C.
Specialization of triqs::exception. It only overrides operator<<() so that chained calls return a triqs::keyboard_interrupt reference instead of a triqs::exception reference.
Definition at line 178 of file exceptions.hpp.
Public Member Functions | |
| keyboard_interrupt () noexcept | |
| Default constructor creates a keyboard interrupt with an empty diagnostic message. | |
| virtual | ~keyboard_interrupt () noexcept |
| Virtual default destructor. | |
| template<typename T> | |
| keyboard_interrupt & | 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 193 of file exceptions.hpp.