/Engine/Plugins/Online/OnlineSubsystem/Source/Public/OnlineError.h
Create factory for proper namespacing. Use ONLINE_ERROR macro
static [FOnlineError](API\Plugins\OnlineSubsystem\FOnlineError) CreateError ( const [FString](API\Runtime\Core\Containers\FString) & ErrorNamespace, [EOnlineErrorResult](API\Plugins\OnlineSubsystem\EOnlineErrorResult) Result, const [FString](API\Runtime\Core\Containers\FString) & ErrorCode, const [FText](API\Runtime\Core\Internationalization\FText) & ErrorMessage )