Navigation
API > API/Runtime > API/Runtime/Core
Exception handler stack used for script exceptions.
| Name | FScriptExceptionHandler |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/CoreMisc.h |
| Include Path | #include "Misc/CoreMisc.h" |
Syntax
class FScriptExceptionHandler : public TThreadSingleton< FScriptExceptionHandler >
Inheritance Hierarchy
- FTlsAutoCleanup → TThreadSingleton → FScriptExceptionHandler
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DefaultExceptionHandler | FScriptExceptionHandlerFunc | Default script exception handler | Misc/CoreMisc.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ExceptionHandlerStack | TArray< FScriptExceptionHandlerFunc, TInlineAllocator< 4 > > | 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 | Misc/CoreMisc.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void HandleException
(
ELogVerbosity::Type Verbosity, |
Handle an exception using the active exception handler | Misc/CoreMisc.h | |
void PopExceptionHandler() |
Pop an exception handler from the stack | Misc/CoreMisc.h | |
void PushExceptionHandler
(
const FScriptExceptionHandlerFunc& InFunc |
Push an exception handler onto the stack | Misc/CoreMisc.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void AssertionExceptionHandler
(
ELogVerbosity::Type Verbosity, |
Handler for a script exception that emits an ensure (for warnings or errors) | Misc/CoreMisc.h | |
static FScriptExceptionHandler & Get() |
Get the exception handler for the current thread | Misc/CoreMisc.h | |
static void LoggingExceptionHandler
(
ELogVerbosity::Type Verbosity, |
Handler for a script exception that emits a log message | Misc/CoreMisc.h |