spark.ExceptionHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spark-core Show documentation
Show all versions of spark-core Show documentation
A micro framework for creating web applications in Kotlin and Java 8 with minimal effort
The newest version!
package spark;
/**
* Created by Per Wendel on 2014-05-10.
*/
@FunctionalInterface
public interface ExceptionHandler {
/**
* Invoked when an exception that is mapped to this handler occurs during routing
*
* @param exception The exception that was thrown during routing
* @param request The request object providing information about the HTTP request
* @param response The response object providing functionality for modifying the response
*/
void handle(T exception, Request request, Response response);
}