/Engine/Source/Runtime/Core/Public/Serialization/Archive.h
Sets the archiver IsCriticalError and IsError to true. Also sets CriticalError in the proxy archiver if one is wrapping this.
void SetCriticalError()