com.barchart.http.server.ErrorHandler Maven / Gradle / Ivy
/**
* Copyright (C) 2011-2013 Barchart, Inc.
*
* All rights reserved. Licensed under the OSI BSD License.
*
* http://www.opensource.org/licenses/bsd-license.php
*/
package com.barchart.http.server;
import java.io.IOException;
import com.barchart.http.request.ServerRequest;
import com.barchart.http.request.ServerResponse;
/**
* Error handler for failed requests.
*/
public interface ErrorHandler {
/**
* Called when an error occurs during a request.
*/
public void onError(final ServerRequest request,
final ServerResponse response, Throwable cause) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy