Skip to content

Commit d6a5b03

Browse files
committed
[Refact] #5 커스텀익셉션 super로 원인출력
1 parent a7aaf44 commit d6a5b03

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/main/java/com/WhoIsRoom/WhoIs_Server/global/common/exception/BusinessException.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
public class BusinessException extends RuntimeException {
88
private final ErrorCode errorCode;
99

10-
public BusinessException(ErrorCode errorCode) {
11-
this.errorCode = errorCode;
10+
public BusinessException(ErrorCode code) {
11+
super(code.getMessage());
12+
this.errorCode = code;
1213
}
13-
}
14+
}

0 commit comments

Comments
 (0)