Nexus.Client.Games.Morrowind.PluginManagement.Boss.BossSorter.HandleStatusCode C# (CSharp) Метод

HandleStatusCode() приватный Метод

Handles the status code returned by the BAPI methods.
private HandleStatusCode ( UInt32 p_uintStatusCode ) : void
p_uintStatusCode System.UInt32 The status code to handle.
Результат void
		private void HandleStatusCode(UInt32 p_uintStatusCode)
		{
			if (p_uintStatusCode == 0)
				return;

			string strDetails = GetLastErrorDetails();
			switch (p_uintStatusCode)
			{
				case BOSS_API_OK_NO_UPDATE_NECESSARY:
					//BOSS_API_OK_NO_UPDATE_NECESSARY;
					break;
				case 10:
					//BOSS_API_WARN_BAD_FILENAME;
					break;
				case 32:
					//BOSS_API_WARN_LO_MISMATCH;
					break;
				case 3:
					//BOSS_API_ERROR_FILE_WRITE_FAIL;
					throw new BossException("BOSS_API_ERROR_FILE_WRITE_FAIL: " + strDetails);
				case 18:
					//BOSS_API_ERROR_FILE_DELETE_FAIL;
					throw new BossException("BOSS_API_ERROR_FILE_DELETE_FAIL: " + strDetails);
				case 4:
					//BOSS_API_ERROR_FILE_NOT_UTF8;
					throw new BossException("BOSS_API_ERROR_FILE_NOT_UTF8: " + strDetails);
				case 5:
					//BOSS_API_ERROR_FILE_NOT_FOUND;
					throw new BossException("BOSS_API_ERROR_FILE_NOT_FOUND: " + strDetails);
				case 15:
					//BOSS_API_ERROR_MASTER_TIME_READ_FAIL;
					//BOSS_API_ERROR_MOD_TIME_READ_FAIL;
					throw new BossException("BOSS_API_ERROR_MASTER_TIME_READ_FAIL/BOSS_API_ERROR_MOD_TIME_READ_FAIL: " + strDetails);
				case 16:
					//BOSS_API_ERROR_MOD_TIME_WRITE_FAIL;
					throw new BossException("BOSS_API_ERROR_MOD_TIME_WRITE_FAIL: " + strDetails);
				case 6:
					//BOSS_API_ERROR_PARSE_FAIL;
					throw new BossException("BOSS_API_ERROR_PARSE_FAIL: " + strDetails);
				case 7:
					//BOSS_API_ERROR_CONDITION_EVAL_FAIL;
					throw new BossException("BOSS_API_ERROR_CONDITION_EVAL_FAIL: " + strDetails);
				case 33:
					//BOSS_API_ERROR_NO_MEM;
					throw new BossException("BOSS_API_ERROR_NO_MEM: " + strDetails);
				case 34:
					//BOSS_API_ERROR_INVALID_ARGS;
					throw new BossException("BOSS_API_ERROR_INVALID_ARGS: " + strDetails);
				case 35:
					//BOSS_API_ERROR_NETWORK_FAIL;
					throw new BossException("BOSS_API_ERROR_NETWORK_FAIL: " + strDetails);
				case 36:
					//BOSS_API_ERROR_NO_INTERNET_CONNECTION;
					throw new BossException("BOSS_API_ERROR_NO_INTERNET_CONNECTION: " + strDetails);
				case 37:
					//BOSS_API_ERROR_NO_TAG_MAP;
					throw new BossException("BOSS_API_ERROR_NO_TAG_MAP: " + strDetails);
				case 8:
					//BOSS_API_ERROR_REGEX_EVAL_FAIL;
					throw new BossException("BOSS_API_ERROR_REGEX_EVAL_FAIL: " + strDetails);
				case 38:
					//BOSS_API_ERROR_PLUGINS_FULL;
					throw new BossException("BOSS_API_ERROR_PLUGINS_FULL: " + strDetails);
				case 9:
					//BOSS_API_ERROR_GAME_NOT_FOUND;
					throw new BossException("BOSS_API_ERROR_GAME_NOT_FOUND: " + strDetails);
				default:
					throw new BossException(String.Format("Unreconized error value {1}: {0}", strDetails, p_uintStatusCode));
			}
		}