edu.ksu.canvas.errors.ErrorHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of canvas-api Show documentation
Show all versions of canvas-api Show documentation
A native Java library to talk to the Canvas REST API
package edu.ksu.canvas.errors;
import org.apache.http.HttpRequest;
import org.apache.http.HttpResponse;
/**
* This allows additional specific behaviour for handling errors.
*/
public interface ErrorHandler {
boolean shouldHandle(HttpRequest httpRequest, HttpResponse httpResponse);
void handle(HttpRequest httpRequest, HttpResponse httpResponse);
}