|
LBANN
0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
|
The base exception for LBANN errors. More...
#include <exception.hpp>
Public Member Functions | |
| exception () | |
| Default constructor. More... | |
| exception (std::string message) | |
| Constructor with message. More... | |
| char const * | what () const noexcept override |
| void | print_report (std::ostream &os=std::cerr) const |
| Print the what() string to the stream. More... | |
Private Attributes | |
| std::string | m_message |
The base exception for LBANN errors.
A stack trace is recorded when the exception is constructed.
Definition at line 118 of file exception.hpp.
| lbann::exception::exception | ( | ) |
Default constructor.
Uses a generic message that reports the rank and stack trace.
| lbann::exception::exception | ( | std::string | message | ) |
Constructor with message.
The message is interpolated into a longer report that includes the stack trace from where the constructor is called. Unfortunately, the constructor frame is usually included in that stack trace.
| void lbann::exception::print_report | ( | std::ostream & | os = std::cerr | ) | const |
Print the what() string to the stream.
|
overridenoexcept |
|
private |
Human-readable exception message.
Definition at line 143 of file exception.hpp.