import java.io.IOException;
import java.sql.SQLException;
import org.mxchange.jcore.FrameworkInterface;
+import org.mxchange.jcore.exceptions.MenuInitializationException;
/**
*
/**
* Run the main loop
+ * <p>
+ * @throws org.mxchange.jcore.exceptions.MenuInitializationException If the menu could not be initialized
*/
- public void doMainLoop ();
+ public void doMainLoop () throws MenuInitializationException;
/**
* Shutdown the application
--- /dev/null
+/*
+ * Copyright (C) 2015 Roland Haeder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcore.exceptions;
+
+/**
+ * This exception is thrown when the menu cannot be initialized.
+ * <p>
+ * @author Roland Haeder
+ */
+public class MenuInitializationException extends Exception {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 24_783_787_818_459_283L;
+
+ /**
+ * Constructor for bad menu instance and type
+ * <p>
+ * @param menu Bad menu instance (not implementing Menu)
+ * @param menuType Menu type
+ */
+ public MenuInitializationException (final Object menu, final String menuType) {
+ }
+
+}
package org.mxchange.jcore.manager.application;
import org.mxchange.jcore.application.Application;
+import org.mxchange.jcore.exceptions.MenuInitializationException;
import org.mxchange.jcore.manager.BaseManager;
/**
}
@Override
- public void start () {
+ public void start () throws MenuInitializationException {
// Bootstrap application
this.getApplication().doBootstrap();
*/
package org.mxchange.jcore.manager.application;
+import org.mxchange.jcore.exceptions.MenuInitializationException;
import org.mxchange.jcore.manager.Manageable;
/**
/**
* Launches application
+ * <p>
+ * @throws org.mxchange.jcore.exceptions.MenuInitializationException If the menu could not be initialized
*/
- public void start ();
+ public void start () throws MenuInitializationException;
}