try {
// Ask frontend for a list of products
return this.productFrontend.getAvailableProducts();
- } catch (final IOException | BadTokenException | SQLException | CorruptedDatabaseFileException ex) {
+ } catch (final IOException | BadTokenException | SQLException | CorruptedDatabaseFileException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
throw new ServletException(ex);
}
}
try {
// Ask frontend for a list of products
return this.productFrontend.getAllProducts();
- } catch (final IOException | BadTokenException | SQLException | CorruptedDatabaseFileException ex) {
+ } catch (final IOException | BadTokenException | SQLException | CorruptedDatabaseFileException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
throw new ServletException(ex);
}
}
try {
// Ask frontend for a list of categories
return this.categoryFrontend.getCategories();
- } catch (final IOException | BadTokenException | SQLException | CorruptedDatabaseFileException ex) {
+ } catch (final IOException | BadTokenException | SQLException | CorruptedDatabaseFileException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
throw new ServletException(ex);
}
}
this.getLogger().trace(MessageFormat.format("session={0},key={1} - CALLED!", session, key)); //NOI18N
// Init value
- Object value = null;
+ Object value;
// Get it synchronized from session
synchronized (session) {
* @param title Title of category to check
* @return Whether it has been found
*/
- private boolean isCategoryTitleUsed (final String title) throws IOException, SQLException, BadTokenException, CorruptedDatabaseFileException {
+ private boolean isCategoryTitleUsed (final String title) throws IOException, SQLException, BadTokenException, CorruptedDatabaseFileException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
// Delegate to frontend
return this.categoryFrontend.isCategoryTitleUsed(title);
}
* @param title Product title to check
* @return Whether the product title has already been used
*/
- private boolean isProductTitleUsed (final String title) throws IOException, SQLException, BadTokenException, CorruptedDatabaseFileException {
+ private boolean isProductTitleUsed (final String title) throws IOException, SQLException, BadTokenException, CorruptedDatabaseFileException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
// Delegate to frontend
return this.productFrontend.isProductTitleUsed(title);
}
// Title already used
throw new CategoryTitleAlreadyUsedException(request);
}
- } catch (final IOException | SQLException | BadTokenException | CorruptedDatabaseFileException ex) {
+ } catch (final IOException | SQLException | BadTokenException | CorruptedDatabaseFileException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
throw new ServletException(ex);
}
// Title already used
throw new ProductTitleAlreadyUsedException(request);
}
- } catch (final IOException | SQLException | BadTokenException | CorruptedDatabaseFileException ex) {
+ } catch (final IOException | SQLException | BadTokenException | CorruptedDatabaseFileException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
throw new ServletException(ex);
}