API Documentation
Loading...
Searching...
No Matches
CrashManager Class Reference

Handles crashes and can be used to write crash reports, etc On Windows this class can be used to create mini-dumps. More...

#include <CrashManager.h>

Inheritance diagram for CrashManager:
[legend]
Collaboration diagram for CrashManager:
[legend]

Public Member Functions

 CrashManager ()
 
bool handleException (void *e)
 
bool recordAllExceptions () const
 
bool setAsTopLevelExceptionHandler ()
 
void setCallback (std::function< void(const Exception &)> callback)
 
void setMiniDumpDirectory (const File &file)
 
virtual ~CrashManager ()
 

Static Public Member Functions

static CrashManagerCurrentCrashManager ()
 

Protected Attributes

std::function< void(const Exception &)> m_callback
 
File m_minidump_directory
 

Detailed Description

Handles crashes and can be used to write crash reports, etc On Windows this class can be used to create mini-dumps.


Constructor & Destructor Documentation

◆ CrashManager()

◆ ~CrashManager()

virtual ~CrashManager ( )
virtual

Member Function Documentation

◆ CurrentCrashManager()

static CrashManager * CurrentCrashManager ( )
static

◆ handleException()

bool handleException ( void * e)

◆ recordAllExceptions()

bool recordAllExceptions ( ) const
inline

◆ setAsTopLevelExceptionHandler()

bool setAsTopLevelExceptionHandler ( )

◆ setCallback()

void setCallback ( std::function< void(const Exception &)> callback)
inline

◆ setMiniDumpDirectory()

void setMiniDumpDirectory ( const File & file)
inline

Member Data Documentation

◆ m_callback

std::function<void(const Exception&)> m_callback
protected

◆ m_minidump_directory

File m_minidump_directory
protected

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