OpenWalnut
1.4.0
|
Base exception class for handling segmentation faults. More...
#include <WSegmentationFault.h>
Public Member Functions | |
WSegmentationFault (const std::string &msg="Segmentation Fault") | |
Default constructor. | |
virtual | ~WSegmentationFault () throw () |
Destructor. | |
Static Public Member Functions | |
static int | getSignalNumber () throw () |
Defines signal type to handle. | |
static void | installSignalHandler () throw () |
Installs this exception as signal handler for SIGSEGV. |
Base exception class for handling segmentation faults.
It throws segmentation faults as exceptions. Please remember that SIGSEGV is not recoverable, which means it can NOT be catched! Also note that this will only work on Linux.
Definition at line 78 of file WSegmentationFault.h.
WSegmentationFault::WSegmentationFault | ( | const std::string & | msg = "Segmentation Fault" | ) | [explicit] |
Default constructor.
msg | name of the exception. mostly the default "Segmentation Fault" |
Definition at line 29 of file WSegmentationFault.cpp.
References WException::m_msg.
WSegmentationFault::~WSegmentationFault | ( | ) | throw () [virtual] |
Destructor.
Definition at line 36 of file WSegmentationFault.cpp.
int WSegmentationFault::getSignalNumber | ( | ) | throw () [static] |
Defines signal type to handle.
Definition at line 41 of file WSegmentationFault.cpp.
void WSegmentationFault::installSignalHandler | ( | ) | throw () [static] |
Installs this exception as signal handler for SIGSEGV.
This will just work on Linux.
Definition at line 50 of file WSegmentationFault.cpp.