defaultrobotexceptionhandler.java

来自「一个Java的网络爬虫」· Java 代码 · 共 24 行

JAVA
24
字号
package net.matuschek.spider;

import java.net.URL;


/**
 * DefaultRobotExceptionHandler
 * This is a concrete ExceptionHandler, which is used as default exception handler
 * <p>
 * @author cn
 * @version 0.1
 */
public class DefaultRobotExceptionHandler implements RobotExceptionHandler {

	/**
	 * This exception handler ignores the exception and does nothing
	 * @see RobotExceptionHandler#handleException(WebRobot, URL, Exception)
	 */
	public void handleException(WebRobot robot, URL url, Exception e) {
		// do nothing
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?