Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FError
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const T * GetErrorContext () |
Returns context information previously added with PushErrorContext, or the original data the error was created with. | Experimental/UnifiedError/UnifiedError.h | |
const decltype(Declaration) ::PayloadType * GetErrorContext () |
Helper for getting context information using the name of the error as declared rather than the name of the payload struct. | Experimental/UnifiedError/UnifiedError.h | |
const decltype(Declaration) ::PayloadType * GetErrorContext () |
Experimental/UnifiedError/UnifiedError.h |
GetErrorContext()
Description
Returns context information previously added with PushErrorContext, or the original data the error was created with. The type parameter should be based on the declaration from UE_DECLARE_ERROR or UE_DECLARE_ERROR_CONTEXT.
e.g. UE_DECLARE_ERROR(..., MyModule, MyError, ...)GetErrorContext
Note that this only returns the original error data or data added with PushErrorContext_. If you use a struct declared with UE_DECLARE_ERROR_CONTEXT as a field in UE_DECLARE_ERROR_, that field will not be returned from this method.
| Name | GetErrorContext |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Experimental/UnifiedError/UnifiedError.h |
| Include Path | #include "Experimental/UnifiedError/UnifiedError.h" |
template<CErrorContext T>
const T * GetErrorContext() const
GetErrorContext()
Description
Helper for getting context information using the name of the error as declared rather than the name of the payload struct.
e.g. UE_DECLARE_ERROR(..., MyModule, MyError, ...)GetErrorContext
| Name | GetErrorContext |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Experimental/UnifiedError/UnifiedError.h |
| Include Path | #include "Experimental/UnifiedError/UnifiedError.h" |
template<CErrorDeclaration auto Declaration>
const decltype(Declaration) ::PayloadType * GetErrorContext() const
GetErrorContext()
| Name | GetErrorContext |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Experimental/UnifiedError/UnifiedError.h |
| Include Path | #include "Experimental/UnifiedError/UnifiedError.h" |
template<CErrorDeclaration auto Declaration>
const decltype(Declaration) ::PayloadType * GetErrorContext() const