package webraveler.ravel; import webraveler.http.HTTPRequest; import webraveler.http.HTTPResponse; /** * A RavelerWarningException allows plugins to stop Raveling * and pass the content they received on to other plugins, * without disturbing the flow of information between the * client and server (as with RavelerErrorExceptions). * * @author The Web Raveler Development Squad * @version 1.0 */ public class RavelerWarningException extends Exception { RavelerWarning warn; HTTPResponse errResponse; HTTPRequest errRequest; public RavelerWarningException() {errResponse = null;} public RavelerWarningException(String s) {super(s);errResponse = null;} public RavelerWarningException(RavelerWarning warn) { this.warn = warn; errResponse = null; } public RavelerWarningException(RavelerWarning warn, HTTPResponse errResponse) { this.warn = warn; this.errResponse = errResponse; } public RavelerWarningException(HTTPResponse errResponse) { this.errResponse = errResponse; } public RavelerWarningException(RavelerWarning warn, HTTPRequest errRequest) { this.warn = warn; this.errRequest = errRequest; } public RavelerWarningException(HTTPRequest errRequest) { this.errRequest = errRequest; } public RavelerWarning getWarning() { return warn; } public HTTPResponse getResponse() { return errResponse; } public HTTPRequest getRequest() { return errRequest; } }