import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.mxchange.jcore.contact.Gender;
+import org.mxchange.jcore.exceptions.BadTokenException;
import org.mxchange.jcore.exceptions.UnsupportedDatabaseBackendException;
import org.mxchange.pizzaapplication.BasePizzaServiceSystem;
import org.mxchange.pizzaapplication.customer.Customer;
try {
// "service" is null, so initialize it
instance = new PizzaServiceApplication(context);
- } catch (final UnsupportedDatabaseBackendException | SQLException ex) {
+ } catch (final UnsupportedDatabaseBackendException | SQLException | IOException | BadTokenException ex) {
throw new ServletException(ex);
}
* Constructor with servet configuration
* @param context Servlet context
*/
- private PizzaServiceApplication (final ServletContext context) throws UnsupportedDatabaseBackendException, SQLException {
+ private PizzaServiceApplication (final ServletContext context) throws UnsupportedDatabaseBackendException, SQLException, IOException, BadTokenException {
// Call other constructor first
this();
* Fills products list
* @todo Very hard-coded stuff ...
*/
- private void fillProductsList () throws UnsupportedDatabaseBackendException, SQLException {
+ private void fillProductsList () throws UnsupportedDatabaseBackendException, SQLException, IOException, BadTokenException {
// Trace message
this.getLogger().trace("CALLED!"); //NOI18N
// Fill products list
this.fillProductsList();
- } catch (final IOException | UnsupportedDatabaseBackendException | SQLException ex) {
+ } catch (final IOException | UnsupportedDatabaseBackendException | SQLException | BadTokenException ex) {
// Abort here
this.abortProgramWithException(ex);
}
*/
package org.mxchange.pizzaapplication.database.frontend.product;
+import java.io.IOException;
import java.util.Iterator;
import org.mxchange.jcore.database.frontend.DatabaseFrontend;
+import org.mxchange.jcore.exceptions.BadTokenException;
import org.mxchange.pizzaapplication.product.Product;
/**
* An iterator on all products
*
* @return Iterator on all products
+ * @throws java.io.IOException If any IO error occurs
+ * @throws org.mxchange.jcore.exceptions.BadTokenException If a bad token was found in a file-based database backend's file ... ;-)
*/
- public Iterator<Product> getProducts ();
+ public Iterator<Product> getProducts () throws IOException, BadTokenException;
}
Author : Roland Haeder
--%>
-<%@page errorPage="errorHandler.jsp" %>
+<%--<%@page errorPage="errorHandler.jsp" %>--%>
<%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Author : Roland Haeder
--%>
-<%@page errorPage="errorHandler.jsp" %>
+<%--<%@page errorPage="errorHandler.jsp" %>--%>
<%@page import="java.util.Map"%>
<%@page import="java.util.Iterator"%>
<%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>