class RenderException extends Exception {
	
	private static Log log = LogFactory.getLog(RenderException.class);

	private static final long serialVersionUID = 5034687491589622988L;

	private Class<? extends SpiderBean> spiderBeanClass;
	
	public RenderException(String message, Class<? extends SpiderBean> spiderBeanClass) {
		super(message);
		this.spiderBeanClass = spiderBeanClass;
	}
	
	public RenderException(String message, Class<? extends SpiderBean> spiderBeanClass, FieldRenderException cause) {
		super(message, cause);
		this.spiderBeanClass = spiderBeanClass;
	}

	public Class<? extends SpiderBean> getSpiderBeanClass() {
		return spiderBeanClass;
	}

	public void setSpiderBeanClass(Class<? extends SpiderBean> spiderBeanClass) {
		this.spiderBeanClass = spiderBeanClass;
	}

	public static void log(String message, Class<? extends SpiderBean> spiderBeanClass, Throwable cause) {<FILL_FUNCTION_BODY>}
	
	public static void log(String message, Class<? extends SpiderBean> spiderBeanClass) {
		log(message, spiderBeanClass, null);
	}
}

		boolean debug = SpiderThreadLocal.get().getEngine().isDebug();
		log.error(spiderBeanClass.getName() + " render error : " + message);
		if(debug && cause != null) {
			log.error(message, cause);
		}
	
<methods>public void <init>() ,public void <init>(java.lang.String) ,public void <init>(java.lang.Throwable) ,public void <init>(java.lang.String, java.lang.Throwable) <variables>static final long serialVersionUID