Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
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 27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

메모장

Custom Exception 만들기 본문

Java

Custom Exception 만들기

doopang 2022. 12. 20. 10:26
public class CustomException extends RuntimeException {
  public CustomException(String message, Throwable cause) {
    super(message, cause);
  }

  public CustomException(String message) {
    super(message);
  }

  public CustomException() {
    super();
  }
}

// 예외 실행
throw new CustomException();

'Java' 카테고리의 다른 글

JPA Pageable 이용한 페이징 처리  (0) 2022.12.27
Rest Api 응답  (0) 2022.12.26
JPA 저장된 정렬 정보 이용하여 리스트 조회  (0) 2022.12.07
소수점 0 제거  (0) 2022.11.24
JPA @PrePersist, @PreUpdate  (0) 2022.11.22