package org.mxchange.pizzaapplication.beans.controller;
import java.io.IOException;
-import java.lang.reflect.InvocationTargetException;
import java.rmi.RemoteException;
import java.sql.SQLException;
import java.util.Deque;
public Iterator<Product> getAvailableProductsIterator () throws RemoteException {
try {
return this.remote.getAvailableProductsIterator();
- } catch (final IOException | SQLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
+ } catch (final IOException | SQLException ex) {
// Continue to throw
throw new RemoteException("getAvailableProductsIterator() failed", ex);
}
public Iterator<Product> getAllProductsIterator () throws RemoteException {
try {
return this.remote.getAllProductsIterator();
- } catch (final IOException | SQLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
+ } catch (final IOException | SQLException ex) {
// Continue to throw
throw new RemoteException("getAllProductsIterator() failed.", ex);
}
public Deque<Product> getAvailableProducts () throws RemoteException {
try {
return this.remote.getAvailableProducts();
- } catch (final IOException | SQLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
+ } catch (final IOException | SQLException ex) {
// Continue to throw
throw new RemoteException("getAvailableProducts() failed.", ex);
}
public Deque<Product> getAllProducts () throws RemoteException {
try {
return this.remote.getAllProducts();
- } catch (final IOException | SQLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
+ } catch (final IOException | SQLException ex) {
// Continue to throw
throw new RemoteException("getAllProducts() failed", ex);
}
public Iterator<Category> getAllCategoriesIterator () throws RemoteException {
try {
return this.remote.getAllCategoriesIterator();
- } catch (final IOException | SQLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
+ } catch (final IOException | SQLException ex) {
// Continue to throw
throw new RemoteException("getAllCategoriesIterator() failed.", ex);
}
public Deque<Category> getAllCategories () throws RemoteException {
try {
return this.remote.getAllCategories();
- } catch (final IOException | SQLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
+ } catch (final IOException | SQLException ex) {
// Continue to throw
throw new RemoteException("getAllCategories() failed.", ex);
}
}
@Override
- public void doAdminAddCategory (final Category category) throws RemoteException, CategoryTitleAlreadyUsedException {
+ public void doAdminAddCategory (final Category category) throws RemoteException {
try {
this.remote.doAdminAddCategory(category);
- } catch (final IOException | SQLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
+ } catch (final IOException | SQLException | CategoryTitleAlreadyUsedException ex) {
// Continue to throw
throw new RemoteException("doAdminAddCategory() failed.", ex);
}
}
@Override
- public void doAdminAddProduct (final Product product) throws RemoteException, ProductTitleAlreadyUsedException {
+ public void doAdminAddProduct (final Product product) throws RemoteException {
try {
this.remote.doAdminAddProduct(product);
- } catch (final IOException | SQLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
+ } catch (final IOException | SQLException | ProductTitleAlreadyUsedException ex) {
// Continue to throw
throw new RemoteException("doAdminAddProduct() failed.", ex);
}
import java.util.Deque;
import java.util.Iterator;
import org.mxchange.jcoreee.beans.FrameworkBean;
-import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException;
-import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException;
import org.mxchange.jshopcore.model.category.Category;
import org.mxchange.jshopcore.model.product.Product;
*
* @param category Category instance
* @throws java.rmi.RemoteException If something unexpected happened
- * @throws org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException If the given title is already used
*/
- public void doAdminAddCategory (final Category category) throws RemoteException, CategoryTitleAlreadyUsedException;
+ public void doAdminAddCategory (final Category category) throws RemoteException;
/**
* Adds given product data from request to database
*
* @param product Product instance
* @throws java.rmi.RemoteException If something unexpected happened
- * @throws org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException If the given product title is already used
*/
- public void doAdminAddProduct (final Product product) throws RemoteException, ProductTitleAlreadyUsedException;
+ public void doAdminAddProduct (final Product product) throws RemoteException;
}