All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jbake.app.JBakeException Maven / Gradle / Ivy

Go to download

JBake is a Java based open source static site/blog generator for developers.

There is a newer version: 2.7.0-rc.7
Show newest version
package org.jbake.app;

import org.jbake.launcher.SystemExit;

/**
 * This runtime exception is thrown by JBake API to indicate an processing
 * error.
 * 

* It always contains an error message and if available the cause. */ public class JBakeException extends RuntimeException { private static final long serialVersionUID = 1L; final private SystemExit exit; /** * * @param message * The error message. * @param cause * The causing exception or null if no cause * available. */ public JBakeException(final SystemExit exit, final String message, final Throwable cause) { super(message, cause); this.exit = exit; } public JBakeException(final SystemExit exit, final String message) { this(exit, message, null); } public int getExit() { return exit.getStatus(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy