메모장
Custom Exception 만들기 본문
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 |