working on backend-side translations

This commit is contained in:
2025-12-14 12:36:26 +01:00
parent 00d05bfaff
commit 9fd540ba3c
12 changed files with 59 additions and 81 deletions

View File

@@ -7,10 +7,8 @@ import static de.srsoftware.tools.jdbc.Query.*;
import static de.srsoftware.tools.jdbc.Query.SelectQuery.ALL;
import static de.srsoftware.umbrella.bookmarks.Constants.*;
import static de.srsoftware.umbrella.core.Constants.*;
import static de.srsoftware.umbrella.core.Constants.ERROR_FAILED_CREATE_TABLE;
import static de.srsoftware.umbrella.core.Errors.*;
import static de.srsoftware.umbrella.core.exceptions.UmbrellaException.databaseException;
import static java.lang.System.Logger.Level.ERROR;
import static java.text.MessageFormat.format;
import static java.time.ZoneOffset.UTC;
@@ -78,7 +76,7 @@ CREATE TABLE IF NOT EXISTS {0} (
rs.close();;
return map;
} catch (SQLException e) {
throw databaseException(FAILED_TO_LOAD_BOOKMARKS);
throw databaseException(FAILED_TO_LOAD_ENTITY,"bookmark list");
}
}
@@ -113,7 +111,7 @@ CREATE TABLE IF NOT EXISTS {0} (
rs.close();;
return map;
} catch (SQLException e) {
throw databaseException(FAILED_TO_LOAD_BOOKMARKS);
throw databaseException(FAILED_TO_LOAD_ENTITY,"bookmark list");
}
}
@@ -127,7 +125,7 @@ CREATE TABLE IF NOT EXISTS {0} (
if (result != null) return result;
throw UmbrellaException.notFound("no_bookmark_for_urlid",id);
} catch (SQLException e) {
throw databaseException(FAILED_TO_LOAD_BOOKMARK);
throw databaseException(FAILED_TO_LOAD_ENTITY,"bookmark");
}
}