package net.sf.kerner.utils;

import java.util.Properties;

import net.sf.kerner.utils.StringUtils;

public class PropertyRuntimeException extends RuntimeException {
	
	private static final long serialVersionUID = 71806291218857338L;
	
	private final Properties pro;

	public PropertyRuntimeException() {
		this.pro = new Properties();
	}

	public PropertyRuntimeException(String arg0) {
		this(arg0, new Properties());
		
	}
	
	public PropertyRuntimeException(String arg0, Properties pro) {
		super(arg0);
		this.pro = pro;
	}

	public PropertyRuntimeException(Throwable arg0) {
		this(arg0, new Properties());
	}
	
	public PropertyRuntimeException(Throwable arg0, Properties pro) {
		super(arg0);
		this.pro = pro;
	}

	public PropertyRuntimeException(String arg0, Throwable arg1) {
		this(arg0, arg1, new Properties());
	}
	
	public PropertyRuntimeException(String arg0, Throwable arg1, Properties pro) {
		super(arg0, arg1);
		this.pro = pro;
	}
	
	@Override
	public String toString() {
		final StringBuilder sb = new StringBuilder();
		sb.append(pro.toString());
		sb.append(StringUtils.NEW_LINE_STRING);
		sb.append(super.toString());
		return sb.toString();
	}

	public Properties getPro() {
		return pro;
	}

}

@@ -417,24 +417,109 @@
 ));%0A%09%09%0A%09%7D%0A%09%0A
+%09public PropertyRuntimeException(Properties pro) %7B%0A%09%09super();%0A%09%09this.pro = pro;%0A%09%7D%0A%09%0A
 %09public Prop

Add additional constructor.