package cn.edu.tju.se.base.exception;

public class MyException extends RuntimeException {
	private Long errorCode;
	
	public MyException(Long errorCode){
		super("MyError with error code "+errorCode);
		this.errorCode = errorCode;
	}
	
	@Deprecated
	public MyException(String message){
		super(message);
	}

	public Long getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(Long errorCode) {
		this.errorCode = errorCode;
	}

	
}
