UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CoreErrorTypes.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "UnifiedError.h"
6
8UE_DECLARE_ERROR_TWOPARAM( CORE_API, ArgumentError, 1, Core, NSLOCTEXT("Core", "ArgumentError", "Invalid argument '{ArgumentName}', reason '{ArgumentError}'"), FString, ArgumentName, TEXT(""), FString, ArgumentError, TEXT(""));
9UE_DECLARE_ERROR( CORE_API, CancellationError, 2, Core, NSLOCTEXT("Core", "CancellationError", "The operation was cancelled"));
10
11namespace UE::UnifiedError
12{
13
14CORE_API bool IsCancellationError(const FError& Error);
15
16} // namespace UE::UnifiedError
17
#define TEXT(x)
Definition Platform.h:1272
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define NSLOCTEXT(InNamespace, InKey, InTextLiteral)
Definition Internationalization.h:300
#define UE_DECLARE_ERROR_TWOPARAM(DeclareApi, ErrorName, ErrorCode, ModuleName, FormatString, ParamOneType, ParamOneName, ParamOneDefault, ParamTwoType, ParamTwoName, ParamTwoDefault)
Definition UnifiedError.h:767
#define UE_DECLARE_ERROR(DeclareApi, ErrorName, ErrorCode, ModuleName, FormatString)
Definition UnifiedError.h:725
#define UE_DECLARE_ERROR_MODULE(DeclareApi, ModuleName)
Definition UnifiedError.h:666
Definition Core.Build.cs:8
Definition IoStatusError.cpp:13
bool IsCancellationError(const FError &Error)
Definition CoreErrorTypes.cpp:12