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

#include <triqs/utility/exceptions.hpp>

Detailed Description

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.

Inheritance diagram for triqs::runtime_error:
triqs::exception

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_erroroperator<< (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>
runtime_error & triqs::runtime_error::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 166 of file exceptions.hpp.


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