28 references to ErrorCode
UnitTests.Common (28)
TestTypes.cs (28)
117
return new ResultObject<T> { Result = default(T), ErrorCode = 0, ErrorMessage = TestTypes.ErrorMessage.Get(TestTypes.
ErrorCode
.Ok) };
151
private static Dictionary<
ErrorCode
, string> s_localizedErrorCodes;
153
public static string Get(
ErrorCode
errorCode)
157
return (s_localizedErrorCodes.ContainsKey(errorCode) ? s_localizedErrorCodes[errorCode] : s_localizedErrorCodes[
ErrorCode
.UnknownException]);
162
public static string GetErrorDescription(
ErrorCode
errorCode)
166
case
ErrorCode
.Ok:
169
case
ErrorCode
.DcXboxTokeNull:
170
case
ErrorCode
.DcDailyFileNotAvailable:
171
case
ErrorCode
.DcDailyFileBroken:
174
case
ErrorCode
.DcMonthlyFileNotAvailable:
175
case
ErrorCode
.DcMonthlyFileBroken:
178
case
ErrorCode
.DcCanNotWriteMonthlyUserProgress:
179
case
ErrorCode
.DcCanNotWriteDailyUserProgress:
182
case
ErrorCode
.NotOwner:
185
case
ErrorCode
.ThemeNotFound:
188
case
ErrorCode
.AsyncOperationFault:
191
case
ErrorCode
.DataNotFound:
194
case
ErrorCode
.CantShare:
197
case
ErrorCode
.GamePlayIsNotValid:
200
case
ErrorCode
.UserNotAuthenticated:
203
case
ErrorCode
.UnknownException:
206
case
ErrorCode
.NullData:
209
case
ErrorCode
.SameData:
212
case
ErrorCode
.OnlineDataReceived:
215
case
ErrorCode
.OfflineDataReceived:
218
case
ErrorCode
.OfflineOnlineDataReceived:
221
case
ErrorCode
.LatencyOverhead:
227
public static void Init(Dictionary<
ErrorCode
, string> localizedErrorCodes)