org.analogweb.ExceptionHandler Maven / Gradle / Ivy
The newest version!
package org.analogweb;
/**
* Handle {@link Throwable} that caused by invoking route method.
*
* @author snowgoose
*/
public interface ExceptionHandler extends Module {
/**
* Handle caused {@link Throwable}. The return value handle by {@link RenderableResolver} when that is not
* {@code null}.
*
* @param exception
* {@link Exception}
*
* @return Result of exception handling.({@link Renderable} etc...)
*/
Object handleException(Exception exception);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy