удаление устаревших кодов для сервера

This commit is contained in:
2025-02-13 20:45:51 +03:00
parent 54ec1fee99
commit 0bdc870a72
4 changed files with 7 additions and 75 deletions

View File

@@ -62,8 +62,6 @@ public abstract class RepositoryPass<S extends RepositoryServer, T> extends Pass
switch (ExitCode = server_response.getCode()) {
case FAIL:
throw (Exception) server_response.object;
case OLD:
throw new PassException("Сервер устарел.");
default:
break;
}
@@ -79,10 +77,6 @@ public abstract class RepositoryPass<S extends RepositoryServer, T> extends Pass
}
@Override
protected void CheckException(Exception ex) {
if (ExitCode.equals(ServerCode.OLD)) {
Log.Writeln_("Текущий сервер устарел. Доступны только обновления компонент!");
return;
}
if (ex instanceof RepositoryRefuseException) {
Log.Writeln_(ex.getMessage());
return;