-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathUIErrorCode.cs
More file actions
37 lines (33 loc) · 1.39 KB
/
Copy pathUIErrorCode.cs
File metadata and controls
37 lines (33 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Unity C# reference source
// Copyright (c) Unity Technologies. For terms of use, see
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License
namespace UnityEditor.PackageManager.UI.Internal
{
internal enum UIErrorCode
{
// we must keep this Core Error Codes section in sync with Core team's ErrorCode.cs
// in order for error code casting to work - these values must also precede any new
// error codes we add specifically for PackageManagerUI
#region Original Core Error Codes
UpmError_Unknown = ErrorCode.Unknown,
UpmError_NotFound = ErrorCode.NotFound,
UpmError_Forbidden = ErrorCode.Forbidden,
UpmError_InvalidParameter = ErrorCode.InvalidParameter,
UpmError_Conflict = ErrorCode.Conflict,
UpmError_ConnectionError = ErrorCode.ConnectionError,
#endregion
// These are additional UPM errors that we need but are not returned
// by the UPM server. These values might override the original code.
UpmError_ServerNotRunning = 100,
UpmError_UnsignedUnityPackage,
UpmError_NotAcquired,
UpmError_PackageNotLoaded,
UpmError_InvalidSourcePath,
AssetStoreAuthorizationError = 500,
AssetStoreClientError,
AssetStoreRestApiError,
AssetStoreOperationError,
AssetStorePackageError,
UserNotSignedIn = 600
}
}