UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FWindowsErrorReport Class Reference

#include <WindowsErrorReport.h>

+ Inheritance diagram for FWindowsErrorReport:

Public Member Functions

 FWindowsErrorReport ()
 
 FWindowsErrorReport (const FString &Directory)
 
FText DiagnoseReport () const
 
FString FindCrashedAppPath () const
 
- Public Member Functions inherited from FGenericErrorReport
 FGenericErrorReport ()
 
 FGenericErrorReport (const FString &Directory)
 
bool SetUserComment (const FText &UserComment)
 
void SetPrimaryCrashProperties (FPrimaryCrashProperties &out_PrimaryCrashProperties)
 
void SetCrashReportClientVersion (const FString &InVersion)
 
TArray< FString > GetFilesToUpload () const
 
TArray< FString > GetOptionalAttachmentsToUpload () const
 
bool LoadWindowsReportXmlFile (FString &OutString) const
 
bool TryReadDiagnosticsFile ()
 
FString GetReportDirectory () const
 
FString GetReportDirectoryLeafName () const
 
FString FindCrashedAppName () const
 
FString FindCrashedAppPath () const
 
bool HasFilesToUpload () const
 
bool FindFirstReportFileWithExtension (FString &OutFilename, const TCHAR *Extension) const
 
void DeleteFiles ()
 

Static Public Member Functions

static void Init ()
 
static void ShutDown ()
 
static void FindMostRecentErrorReports (TArray< FString > &ErrorReportPaths, const FTimespan &MaxCrashReportAge)
 
- Static Public Member Functions inherited from FGenericErrorReport
static void Init ()
 
static void ShutDown ()
 

Additional Inherited Members

- Protected Attributes inherited from FGenericErrorReport
FString ReportDirectory
 
TArray< FString > ReportFilenames
 
FString OptionalAttachmentsDirectory
 
TArray< FString > OptionalAttachmentsFilenames
 
bool bValidCallstack
 

Detailed Description

Helper that works with Windows Error Reports

Constructor & Destructor Documentation

◆ FWindowsErrorReport() [1/2]

FWindowsErrorReport::FWindowsErrorReport ( )
inline

Default constructor: creates a report with no files

◆ FWindowsErrorReport() [2/2]

FWindowsErrorReport::FWindowsErrorReport ( const FString &  Directory)
explicit

Discover all files in the crash report directory

Parameters
DirectoryFull path to directory containing the report

Member Function Documentation

◆ DiagnoseReport()

FText FWindowsErrorReport::DiagnoseReport ( ) const

Provide the exception and a call-stack as plain text if possible

Note
This can take quite a long time

◆ FindCrashedAppPath()

FString FWindowsErrorReport::FindCrashedAppPath ( ) const

Get the full path of the crashed app from the report

◆ FindMostRecentErrorReports()

void FWindowsErrorReport::FindMostRecentErrorReports ( TArray< FString > &  ErrorReportPaths,
const FTimespan MaxCrashReportAge 
)
static

Look for the most recent Windows Error Reports

Returns
Full path to the most recent report, or an empty string if none found

◆ Init()

void FWindowsErrorReport::Init ( )
static

Load helper modules

◆ ShutDown()

void FWindowsErrorReport::ShutDown ( )
static

Unload helper modules


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