Base class for exceptions with stack unwinding.
More...
#include <TraceableException.hh>
|
| | TraceableException (const std::string &msg) |
| | Construct a new Traceable Exception object.
|
| |
| | TraceableException (const std::string &msg, int err) |
| | Construct a new Traceable Exception object with an erro code.
|
| |
Base class for exceptions with stack unwinding.
This is a base class for other, more specific exceptions. It can print out the stack trace leading to the exception.
- Examples
- ivexec.cc, ivprocinfo.cc, ivservicetable.cc, and vmcall_interface.cc.
◆ TraceableException() [1/3]
◆ ~TraceableException()
| introvirt::TraceableException::~TraceableException |
( |
| ) |
|
|
override |
◆ TraceableException() [2/3]
| introvirt::TraceableException::TraceableException |
( |
const std::string & |
msg | ) |
|
|
explicitprotected |
Construct a new Traceable Exception object.
- Parameters
-
◆ TraceableException() [3/3]
| introvirt::TraceableException::TraceableException |
( |
const std::string & |
msg, |
|
|
int |
err |
|
) |
| |
|
protected |
Construct a new Traceable Exception object with an erro code.
- Parameters
-
| msg | The error message |
| err | The errno value |
◆ error_code()
| int introvirt::TraceableException::error_code |
( |
| ) |
const |
Get the errno value if one was set.
- Returns
- The errno value if one was set, 0 otherwise.
◆ operator=()
Move assignment operator.
◆ operator<<
Write this exception to a stream.
- Parameters
-
| os | The output stream to write to |
| error | The exception to write |
- Returns
- std::ostream& The stream that was provided
The documentation for this class was generated from the following file: