Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FError
Description
Add additional context to this error. This method is intended to allow errors to gather additional information as they bubble up the callstack from their origin, through different layers of abstraction.
e.g. An error is created in low level filesystem code, specifiying the information available at the time. When the error returns to the caller, it adds additional context such as the asset it was attempting to load.
Returns *this so callers can chain construction and context attachment in a single expression, e.g. return MakeError(UE::Core::SomeError(FieldValue).PushErrorContext(MoveTemp(Ctx)));
| Name | PushErrorContext |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Experimental/UnifiedError/UnifiedError.h |
| Include Path | #include "Experimental/UnifiedError/UnifiedError.h" |
template<typename T>
FError & PushErrorContext
(
T && InErrorStruct,
const EDetailFilter & InDetailFilter
)