Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FScriptExceptionHandler Class Reference

#include <CoreMisc.h>

+ Inheritance diagram for FScriptExceptionHandler:
+ Collaboration diagram for FScriptExceptionHandler:

Public Member Functions

void PushExceptionHandler (const FScriptExceptionHandlerFunc &InFunc)
 
void PopExceptionHandler ()
 
void HandleException (ELogVerbosity::Type Verbosity, const TCHAR *ExceptionMessage, const TCHAR *StackMessage)
 
- Public Member Functions inherited from FTlsAutoCleanup
virtual ~FTlsAutoCleanup ()
 
void Register ()
 

Static Public Member Functions

static FScriptExceptionHandlerGet ()
 
static void AssertionExceptionHandler (ELogVerbosity::Type Verbosity, const TCHAR *ExceptionMessage, const TCHAR *StackMessage)
 
static void LoggingExceptionHandler (ELogVerbosity::Type Verbosity, const TCHAR *ExceptionMessage, const TCHAR *StackMessage)
 
- Static Public Member Functions inherited from TThreadSingleton< FScriptExceptionHandler >
static FORCEINLINE FScriptExceptionHandlerGet ()
 
static FORCEINLINE FScriptExceptionHandlerGet (TFunctionRef< FTlsAutoCleanup *()> CreateInstance)
 
static FORCEINLINE FScriptExceptionHandlerTryGet ()
 
static FORCEINLINE FScriptExceptionHandlerInject (FScriptExceptionHandler *Instance)
 

Private Attributes

TArray< FScriptExceptionHandlerFunc, TInlineAllocator< 4 > > ExceptionHandlerStack
 

Static Private Attributes

static FScriptExceptionHandlerFunc DefaultExceptionHandler
 

Additional Inherited Members

- Protected Member Functions inherited from TThreadSingleton< FScriptExceptionHandler >
 TThreadSingleton ()
 
virtual ~TThreadSingleton ()
 
- Static Protected Member Functions inherited from TThreadSingleton< FScriptExceptionHandler >
static FTlsAutoCleanupCreateInstance ()
 
- Protected Attributes inherited from TThreadSingleton< FScriptExceptionHandler >
const uint32 ThreadId
 

Detailed Description

Exception handler stack used for script exceptions.

Definition at line 257 of file CoreMisc.h.

Member Function Documentation

◆ AssertionExceptionHandler()

static void FScriptExceptionHandler::AssertionExceptionHandler ( ELogVerbosity::Type Verbosity,
const TCHAR * ExceptionMessage,
const TCHAR * StackMessage )
static

Handler for a script exception that emits an ensure (for warnings or errors)

◆ Get()

static FScriptExceptionHandler & FScriptExceptionHandler::Get ( )
static

Get the exception handler for the current thread

◆ HandleException()

void FScriptExceptionHandler::HandleException ( ELogVerbosity::Type Verbosity,
const TCHAR * ExceptionMessage,
const TCHAR * StackMessage )

Handle an exception using the active exception handler

◆ LoggingExceptionHandler()

static void FScriptExceptionHandler::LoggingExceptionHandler ( ELogVerbosity::Type Verbosity,
const TCHAR * ExceptionMessage,
const TCHAR * StackMessage )
static

Handler for a script exception that emits a log message

◆ PopExceptionHandler()

void FScriptExceptionHandler::PopExceptionHandler ( )

Pop an exception handler from the stack

◆ PushExceptionHandler()

void FScriptExceptionHandler::PushExceptionHandler ( const FScriptExceptionHandlerFunc & InFunc)

Push an exception handler onto the stack

Member Data Documentation

◆ DefaultExceptionHandler

FScriptExceptionHandlerFunc FScriptExceptionHandler::DefaultExceptionHandler
staticprivate

Default script exception handler

Definition at line 294 of file CoreMisc.h.

◆ ExceptionHandlerStack

TArray<FScriptExceptionHandlerFunc, TInlineAllocator<4> > FScriptExceptionHandler::ExceptionHandlerStack
private

Stack of active exception handlers The top of the stack will be called on an exception, or DefaultExceptionHandler will be used if the stack is empty

Definition at line 300 of file CoreMisc.h.


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