Navigation
API > API/Runtime > API/Runtime/Core
Description
Default SerializeForError for any type that already has a SerializeForLog overload. Lets error fields and payloads share their existing log serialization without duplicating overloads. To customize errors specifically, write an explicit SerializeForError overload. This allows errors to handle types for which it is undesirable to have SerializeForLog.
| Name | UE::SerializeForError |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Experimental/UnifiedError/UnifiedErrorDetails.h |
| Include Path | #include "Experimental/UnifiedError/UnifiedErrorDetails.h" |
namespace UE
{
template<typename ValueType, std::enable_if_t<(TModels_V< CSerializableForLog, ValueType >), int >>
void UE::SerializeForError
(
FCbWriter & Writer,
ValueType && Value
)
}