TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
triqs::keyboard_interrupt

#include <triqs/utility/exceptions.hpp>

Detailed Description

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.

Inheritance diagram for triqs::keyboard_interrupt:
triqs::exception

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_interruptoperator<< (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.
exceptionoperator<< (const char *mess)
 Append a C string to the accumulated diagnostic message.
template<typename T>
exceptionoperator<< (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.

Member Function Documentation

◆ operator<<()

template<typename T>
keyboard_interrupt & triqs::keyboard_interrupt::operator<< ( T const & x)
inline

Append a value to the accumulated diagnostic message.

Template Parameters
TType streamable into a std::ostream.
Parameters
xValue to append to the message.
Returns
Reference to *this to allow chaining of multiple operator<<() calls.

Definition at line 193 of file exceptions.hpp.


The documentation for this class was generated from the following file: