Navigation
API > API/Runtime > API/Runtime/Core
Description
For errors declared with UE_DECLARE_ERROR that have no payload fields, there is a single shared TMandatoryErrorDetails instance used by every FError of that type — it has no per-instance data to store. This helper returns that instance (constructed on first call).
For errors with payload fields, this helper is never called at runtime (FError operator() takes the fields-branch in an if-constexpr) and returns nullptr. The default-construction of PayloadType is guarded by the same if-constexpr so payload types are not required to be default-constructible.
| Name | UE::UnifiedError::Private::GetSharedStaticErrorDetails |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Experimental/UnifiedError/UnifiedErrorDetails.h |
| Include Path | #include "Experimental/UnifiedError/UnifiedErrorDetails.h" |
namespace UE
{
namespace UnifiedError
{
namespace Private
{
template<CErrorDeclaration ErrorDeclarationType>
const FMandatoryErrorDetails * UE::UnifiedError::Private::GetSharedStaticErrorDetails()
}
}
}