UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FRuntimeErrors Struct Reference

#include <RuntimeErrors.h>

Public Member Functions

 DECLARE_DELEGATE_FourParams (FRuntimeErrorDelegate, ELogVerbosity::Type, const ANSICHAR *, int32, const FText &)
 

Static Public Member Functions

static CORE_API void LogRuntimeIssue (ELogVerbosity::Type Verbosity, const ANSICHAR *FileName, int32 LineNumber, const FText &Message)
 
static CORE_API bool LogRuntimeIssueReturningFalse (const ANSICHAR *Expr, const ANSICHAR *File, int32 Line)
 

Static Public Attributes

static CORE_API FRuntimeErrorDelegate OnRuntimeIssueLogged
 

Member Function Documentation

◆ DECLARE_DELEGATE_FourParams()

FRuntimeErrors::DECLARE_DELEGATE_FourParams ( FRuntimeErrorDelegate  ,
ELogVerbosity::Type  ,
const ANSICHAR ,
int32  ,
const FText  
)

◆ LogRuntimeIssue()

void FRuntimeErrors::LogRuntimeIssue ( ELogVerbosity::Type  Verbosity,
const ANSICHAR FileName,
int32  LineNumber,
const FText Message 
)
static

Prints out a runtime warning or error (typically by 'throwing' a BP script exception with the BP callstack)

Parameters
VerbosityThe verbosity of the issue (should be Warning or Error)
FileFile name ANSI string (FILE)
LineLine number (LINE)
MessageError or warning message to display, this may be surfaced to the user in the editor so make sure it is actionable (e.g., includes asset name or other useful info to help address the problem)
Returns
false in all cases.

◆ LogRuntimeIssueReturningFalse()

bool FRuntimeErrors::LogRuntimeIssueReturningFalse ( const ANSICHAR Expr,
const ANSICHAR File,
int32  Line 
)
static

Raises a runtime error and returns false.

Parameters
ExprCode expression ANSI string (#code)
FileFile name ANSI string (FILE)
LineLine number (LINE)
Returns
false in all cases.

Member Data Documentation

◆ OnRuntimeIssueLogged

FRuntimeErrors::FRuntimeErrorDelegate FRuntimeErrors::OnRuntimeIssueLogged
static

The documentation for this struct was generated from the following files: