ExceptionBase Class Reference
|
Space-ng SDK
|
sol3::log::ExceptionBase Class Reference
#include <sol3/log/except.h>
Inheritance diagram for sol3::log::ExceptionBase:
Public Member Functions | |
| ExceptionBase (std::string const &short_message, char const *file_name, int line_number, char const *function_name, boost::stacktrace::stacktrace stacktrace=boost::stacktrace::stacktrace{}) | |
Public Attributes | |
| std::string | short_message |
| boost::stacktrace::stacktrace | stacktrace |
| char const * | file_name |
| int | line_number |
| char const * | function_name |
Detailed Description
This exception is meant to be the parent of any deltav exception. Also, ideally the root of any exception thrown from within a sol3::log::ComponentRuntime. The exception captures the filename, line number, function name, and full stacktrace in the constructor. This enables tracking down the source of the exception in a production system via log inspection. Typically ExceptionBase should not be used directly. The constructor interface is compatible with SOL3_THROW which is used to help populate the file name, line number, and function name. Children exceptions should try to maintain the same constructor interface, to remain compatible with SOL3_THROW.
Constructor & Destructor Documentation
◆ ExceptionBase()
|
explicit |
Member Data Documentation
◆ file_name
| char const* sol3::log::ExceptionBase::file_name |
◆ function_name
| char const* sol3::log::ExceptionBase::function_name |
◆ line_number
| int sol3::log::ExceptionBase::line_number |
◆ short_message
| std::string sol3::log::ExceptionBase::short_message |
◆ stacktrace
| boost::stacktrace::stacktrace sol3::log::ExceptionBase::stacktrace |
The documentation for this class was generated from the following file:
- /workspaces/astro/sol3-sdk/cpp/sol3/log/except.h
Generated by