NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
Exception to be used to report errors and stacktraces This is meant to be used for NES-related errors, wrap std exceptions with their own stacktrace, etc.. More...
#include <RuntimeException.hpp>
Public Member Functions | |
RuntimeException (std::string msg, std::string &&stacktrace=collectStacktrace(), const std::source_location location=std::source_location::current()) | |
RuntimeException (std::string msg, const std::string &stacktrace) | |
~RuntimeException () noexcept override=default | |
const char * | what () const noexcept override |
Protected Attributes | |
std::string | errorMessage |
Error message. More... | |
Exception to be used to report errors and stacktraces This is meant to be used for NES-related errors, wrap std exceptions with their own stacktrace, etc..
|
explicit |
Constructor
msg | The error message |
stacktrace | Error stacktrace |
References errorMessage, NES::Logger::getInstance(), NES::getLogLevel(), NES::LOG_DEBUG, and NES_ERROR.
|
explicit |
Constructor
msg | The error message |
stacktrace | Error stacktrace |
References errorMessage, NES::Logger::getInstance(), NES::getLogLevel(), and NES::LOG_DEBUG.
|
overridedefaultnoexcept |
Destructor. Virtual to allow for subclassing.
|
overridenoexcept |
Returns a pointer to the (constant) error description.
References errorMessage.
Referenced by NES::Monitoring::LinuxSystemResourcesReader::readCpuStats(), NES::Monitoring::LinuxSystemResourcesReader::readDiskStats(), NES::Monitoring::LinuxSystemResourcesReader::readMemoryStats(), NES::Monitoring::LinuxSystemResourcesReader::readNetworkStats(), NES::Monitoring::LinuxSystemResourcesReader::readRegistrationMetrics(), NES::Monitoring::LinuxSystemResourcesReader::readRuntimeNesMetrics(), NES::Runtime::ThreadPool::runningRoutine(), and NES::TEST_F().
|
protected |
Error message.
Referenced by RuntimeException(), and what().