InvalidArgumentException.java 515 Bytes
Newer Older
Kim Gyeongeun committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
package jp.agentec.sinaburocast.common.exception;

/**
 * 不正引数でメソッドを呼び出した際の例外
 *
 * @author tsukada
 *
 */
public class InvalidArgumentException extends SystemException {
	private static final long serialVersionUID = 1L;
	private Exception e;

	public InvalidArgumentException(String s, String code) {
		super(s, code);
	}

	public InvalidArgumentException(Exception e, String code) {
		super(e.toString(), code);
		this.e = e;
	}

	public Exception getE() {
		return e;
	}

}