TRIQS/nda 1.3.0
Multi-dimensional array library for C++
|
#include <nda/exceptions.hpp>
Runtime error class used throughout the nda library.
It inherits from std::exception and overloads the operator<<
for easy error message accumulation.
Definition at line 48 of file exceptions.hpp.
Public Member Functions | |
runtime_error () noexcept | |
Default constructor. | |
runtime_error (runtime_error const &err) noexcept | |
Copy constructor to copy the contents of the error message accumulator. | |
~runtime_error () noexcept override=default | |
Default destructor. | |
runtime_error & | operator<< (const char *mess) |
Accumulate error message. | |
template<typename T > | |
runtime_error & | operator<< (T const &x) |
Accumulate error message. | |
const char * | what () const noexcept override |
Override the virtual function what from std::exception to retrieve the accumulated error message. | |
|
inlinenoexcept |
Copy constructor to copy the contents of the error message accumulator.
err | Runtime error to copy. |
Definition at line 63 of file exceptions.hpp.
|
inline |
Accumulate error message.
mess | Message to accumulate. |
this
with the input message appended to the error message. Definition at line 87 of file exceptions.hpp.
|
inline |
Accumulate error message.
T | Type to accumulate. |
x | Input value to accumulate. |
this
with the input value appended to the error message. Definition at line 76 of file exceptions.hpp.
|
inlineoverridenoexcept |
Override the virtual function what
from std::exception to retrieve the accumulated error message.
Definition at line 96 of file exceptions.hpp.