XII Release 0.1.0
Loading...
Searching...
No Matches
xiiCrashHandler Class Referenceabstract

Copyright (c) Theophilus Eriata. All Rights Reserved. More...

#include <CrashHandler.h>

Inheritance diagram for xiiCrashHandler:
[legend]

Public Member Functions

virtual void HandleCrash (void *pOsSpecificData)=0

Static Public Member Functions

static void SetCrashHandler (xiiCrashHandler *pHandler)
static xiiCrashHandler * GetCrashHandler ()

Detailed Description

Copyright (c) Theophilus Eriata. All Rights Reserved.

Helper class to manage the top level exception handler.

A default exception handler is provided but not set by default. The default implementation will write the exception and callstack to the output and create a memory dump using WriteDump that create a dump file in the folder specified via SetExceptionHandler. This class allows to hook into the OS top-level exception handler to handle application crashes

Derive from this class to implement custom behavior. Call xiiCrashHandler::SetCrashHandler() to register which instance to use.

For typical use-cases use xiiCrashHandler_WriteMiniDump::g_Instance.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Engine/Foundation/System/CrashHandler.h
  • /home/runner/work/XII/XII/Source/Engine/Foundation/Platform/Implementation/Posix/CrashHandler_posix.h
  • /home/runner/work/XII/XII/Source/Engine/Foundation/Platform/Implementation/Windows/CrashHandler_win.h
  • /home/runner/work/XII/XII/Source/Engine/Foundation/System/Implementation/CrashHandler.cpp