Skip to content

Commit

Permalink
feat : 커스텀 예외 템플릿 추가
Browse files Browse the repository at this point in the history
- 기존에 구현한 공통 예외(CommonException) 클래스를 상속
  • Loading branch information
dlswns2480 committed Dec 22, 2023
1 parent cbbc4c7 commit 569a77e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.prgrms.catchtable.common.exception.custom;

import com.prgrms.catchtable.common.exception.CommonException;
import com.prgrms.catchtable.common.exception.ErrorCode;

public class BadRequestCustomException extends CommonException {

public BadRequestCustomException(ErrorCode errorCode) {
super(errorCode);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.prgrms.catchtable.common.exception.custom;

import com.prgrms.catchtable.common.exception.CommonException;
import com.prgrms.catchtable.common.exception.ErrorCode;

public class NotFoundCustomException extends CommonException {

public NotFoundCustomException(ErrorCode errorCode) {
super(errorCode);
}
}

0 comments on commit 569a77e

Please sign in to comment.