EGameSearchErrorCode.fromValue constructor
EGameSearchErrorCode.fromValue(
- int value
Implementation
factory EGameSearchErrorCode.fromValue(int value) {
switch (value) {
case 1:
return EGameSearchErrorCode.ok;
case 2:
return EGameSearchErrorCode.failedSearchAlreadyInProgress;
case 3:
return EGameSearchErrorCode.failedNoSearchInProgress;
case 4:
return EGameSearchErrorCode.failedNotLobbyLeader;
case 5:
return EGameSearchErrorCode.failedNoHostAvailable;
case 6:
return EGameSearchErrorCode.failedSearchParamsInvalid;
case 7:
return EGameSearchErrorCode.failedOffline;
case 8:
return EGameSearchErrorCode.failedNotAuthorized;
case 9:
return EGameSearchErrorCode.failedUnknownError;
default:
throw UnknownEnumValueException(
"Unknown value for 'EGameSearchErrorCode'. The value was: '$value'",
);
}
}