自定義實用異常類

public class DataBindedBusinessException extends Exception {


private static final long serialVersionUID = 1L;


public static final int CODE_DEFAULT = 0;


private int code = CODE_DEFAULT;

private Object data = null;


public DataBindedBusinessException(int code, String message) {

super(message);

this.code = code;

}


public int getCode() {

return code;

}

public void setCode(int code) {

this.code = code;

}

public Object getData() {

return data;

}

public void setData(Object data) {

this.data = data;

}

}


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章