Captures the source errors declared by one generated native call.
More...
#include <ModSourceFailure.h>
|
| 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 EXPORTMETADATA_API void | Record (unsigned int Code) noexcept |
| | Records an explicit source error for the active native invocation.
|
Captures the source errors declared by one generated native call.
◆ FSourceFailureScope()
| EXPORTMETADATA_API Mod::ExportMetadata::FSourceFailureScope::FSourceFailureScope |
( |
std::span< const unsigned int > | DeclaredCodes | ) |
|
|
explicitnoexcept |
Begins capturing errors for a generated native call.
- Parameters
-
| DeclaredCodes | Published codes with storage that outlives this scope. |
◆ 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: