1 package net.javacoding.jspider.core.event.impl; 2 3 4 import net.javacoding.jspider.core.SpiderContext; 5 import net.javacoding.jspider.core.event.CoreEventVisitor; 6 7 import java.net.URL ; 8 9 10 16 public class ResourceParsedErrorEvent extends URLRelatedBaseEventImpl { 17 18 protected Throwable error; 19 20 public ResourceParsedErrorEvent(SpiderContext context, URL url, Throwable error) { 21 super(context, url); 22 this.error = error; 23 } 24 25 public String toString() { 26 return "resource parse error : " + url; 27 } 28 29 30 public void accept(URL url, CoreEventVisitor visitor) { 31 visitor.visit(url, this); 32 } 33 } 34 | Popular Tags |