Ark Server API (ASA) - Wiki
|
#include <CoreMisc.h>
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 FScriptExceptionHandler & | Get () |
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 FScriptExceptionHandler & | Get () |
static FORCEINLINE FScriptExceptionHandler & | Get (TFunctionRef< FTlsAutoCleanup *()> CreateInstance) |
static FORCEINLINE FScriptExceptionHandler * | TryGet () |
static FORCEINLINE FScriptExceptionHandler * | Inject (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 FTlsAutoCleanup * | CreateInstance () |
Protected Attributes inherited from TThreadSingleton< FScriptExceptionHandler > | |
const uint32 | ThreadId |
Exception handler stack used for script exceptions.
Definition at line 257 of file CoreMisc.h.
|
static |
Handler for a script exception that emits an ensure (for warnings or errors)
|
static |
Get the exception handler for the current thread
void FScriptExceptionHandler::HandleException | ( | ELogVerbosity::Type | Verbosity, |
const TCHAR * | ExceptionMessage, | ||
const TCHAR * | StackMessage ) |
Handle an exception using the active exception handler
|
static |
Handler for a script exception that emits a log message
void FScriptExceptionHandler::PopExceptionHandler | ( | ) |
Pop an exception handler from the stack
void FScriptExceptionHandler::PushExceptionHandler | ( | const FScriptExceptionHandlerFunc & | InFunc | ) |
Push an exception handler onto the stack
|
staticprivate |
Default script exception handler
Definition at line 294 of file CoreMisc.h.
|
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.