Search in sources :

Example 1 with MDException

use of de.herrlock.manga.exceptions.MDException in project Manga by herrlock.

the class Main method startServer.

private static void startServer(final CommandLine commandline) {
    logger.traceEntry("Commandline: {}", commandline);
    logger.info("Starting Server:");
    try {
        if (commandline.hasOption("browser")) {
            logger.info("(and browser)");
            ServerMain.execute(true);
        } else {
            ServerMain.execute(false);
        }
    } catch (IOException | MDException | URISyntaxException ex) {
        throw new MDRuntimeException(ex);
    }
}
Also used : MDException(de.herrlock.manga.exceptions.MDException) MDRuntimeException(de.herrlock.manga.exceptions.MDRuntimeException) IOException(java.io.IOException) URISyntaxException(java.net.URISyntaxException)

Aggregations

MDException (de.herrlock.manga.exceptions.MDException)1 MDRuntimeException (de.herrlock.manga.exceptions.MDRuntimeException)1 IOException (java.io.IOException)1 URISyntaxException (java.net.URISyntaxException)1