working on backend-side translations
This commit is contained in:
@@ -5,6 +5,8 @@ import static de.srsoftware.tools.jdbc.Condition.equal;
|
||||
import static de.srsoftware.tools.jdbc.Query.SelectQuery.ALL;
|
||||
import static de.srsoftware.tools.jdbc.Query.select;
|
||||
import static de.srsoftware.umbrella.core.Constants.USER_ID;
|
||||
import static de.srsoftware.umbrella.core.Errors.FAILED_TO_CHECK_FILE_PERMISSIONS;
|
||||
import static de.srsoftware.umbrella.core.Errors.FAILED_TO_CREATE_TABLE;
|
||||
import static de.srsoftware.umbrella.core.exceptions.UmbrellaException.databaseException;
|
||||
import static de.srsoftware.umbrella.files.Constants.FILE;
|
||||
import static de.srsoftware.umbrella.files.Constants.TABLE_FILE_SHARES;
|
||||
@@ -37,7 +39,7 @@ public class SqliteDb extends BaseDb implements FileDb {
|
||||
try {
|
||||
db.prepareStatement(format(sql, TABLE_FILE_SHARES,FILE,USER_ID)).execute();
|
||||
} catch (SQLException e){
|
||||
throw databaseException(e.getMessage()).causedBy(e);
|
||||
throw databaseException(FAILED_TO_CREATE_TABLE,TABLE_FILE_SHARES).causedBy(e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,7 +51,7 @@ public class SqliteDb extends BaseDb implements FileDb {
|
||||
rs.close();
|
||||
return result;
|
||||
} catch (SQLException e) {
|
||||
throw databaseException("Failed to check file permissions");
|
||||
throw databaseException(FAILED_TO_CHECK_FILE_PERMISSIONS);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user