OpenWalnut  1.4.0
Public Member Functions | Static Public Member Functions
WSegmentationFault Class Reference

Base exception class for handling segmentation faults. More...

#include <WSegmentationFault.h>

+ Inheritance diagram for WSegmentationFault:

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

WSegmentationFault::WSegmentationFault ( const std::string &  msg = "Segmentation Fault") [explicit]

Default constructor.

Parameters:
msgname of the exception. mostly the default "Segmentation Fault"

Definition at line 29 of file WSegmentationFault.cpp.

References WException::m_msg.

Destructor.

Definition at line 36 of file WSegmentationFault.cpp.


Member Function Documentation

int WSegmentationFault::getSignalNumber ( ) throw () [static]

Defines signal type to handle.

Returns:
The signal number.

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.


The documentation for this class was generated from the following files: