public class MyException extends Exception {
private static final long serialVersionUID = 1L;
private final int ERROR_CODE = 300;
private String reason;
public MyException(String reason) {
super();
this.reason = reason;
}
public int getException() {
return ERROR_CODE;
}
public String toString() {
return reason;
}
}
댓글 없음:
댓글 쓰기