Navigation
API > API/Runtime > API/Runtime/Core
When there are fields in the error, we allocate the mandatory details on the heap with the payload And therefore need refcounting.
| Name | TMandatoryErrorDetailsRefCounting |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Experimental/UnifiedError/UnifiedErrorDetails.h |
| Include Path | #include "Experimental/UnifiedError/UnifiedErrorDetails.h" |
Syntax
template<CErrorDeclaration ErrorDeclarationType, bool bHasFields>
class TMandatoryErrorDetailsRefCounting :
public UE::UnifiedError::FMandatoryErrorDetails ,
public FRefCountedObject
Inheritance Hierarchy
- TAtomicRefCount → FRefCountedObject → TMandatoryErrorDetailsRefCounting
Implements Interfaces
Derived Classes
Class Specializations
| Name | Remarks |
|---|---|
| TMandatoryErrorDetailsRefCounting< ErrorDeclarationType, false > | When there are no fields on the error, we don't need AddRef/Release to do anything as all errors share a static instance |