UnrealModFramework
Mod framework API
Loading...
Searching...
No Matches
Mod::ExportMetadata::FSourceFailureScope Class Reference

Captures the source errors declared by one generated native call. More...

#include <ModSourceFailure.h>

Public Member Functions

EXPORTMETADATA_API FSourceFailureScope (std::span< const unsigned int > DeclaredCodes) noexcept
 Begins capturing errors for a generated native call.
EXPORTMETADATA_API ~FSourceFailureScope ()
 Restores the previous failure capture on the calling thread.
 FSourceFailureScope (const FSourceFailureScope &)=delete
 Disallows copying the active capture.
FSourceFailureScope & operator= (const FSourceFailureScope &)=delete
 Disallows replacing the active capture.
unsigned int GetError () const noexcept
 Reads the business status recorded for this invocation.

Static Public Member Functions

static EXPORTMETADATA_API void Record (unsigned int Code) noexcept
 Records an explicit source error for the active native invocation.

Detailed Description

Captures the source errors declared by one generated native call.

Constructor & Destructor Documentation

◆ FSourceFailureScope()

EXPORTMETADATA_API Mod::ExportMetadata::FSourceFailureScope::FSourceFailureScope ( std::span< const unsigned int > DeclaredCodes)
explicitnoexcept

Begins capturing errors for a generated native call.

Parameters
DeclaredCodesPublished codes with storage that outlives this scope.

Member Function Documentation

◆ GetError()

unsigned int Mod::ExportMetadata::FSourceFailureScope::GetError ( ) const
inlinenoexcept

Reads the business status recorded for this invocation.

Returns
The recorded error code, or zero if no declared error occurred.

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