Skip to content

Commit 56d3214

Browse files
committed
FIX : 부모 클래스로만 쓰여야 하기 때문에 추상클래스로 변환
1 parent 8f055da commit 56d3214

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
package org.sopt.sopkerton.common.exception.base;
22

3-
import lombok.Getter;
4-
import org.springframework.http.HttpStatus;
53

64
/**
7-
* == 하위 도메인 예외는 본 Exception 클래스를 상속 받습니다. ==
5+
* 하위 도메인 예외는 본 Exception 클래스를 상속 받습니다.
6+
* - 객체 생
87
*/
9-
@Getter
10-
public class ExceptionBase extends RuntimeException{
8+
public abstract class ExceptionBase extends RuntimeException{
119
private static final String ERROR_MESSAGE_HEADER = "ERROR : ";
1210

1311
private final ErrorBase errorBase;
14-
public ExceptionBase(ErrorBase errorBase) {
12+
protected ExceptionBase(ErrorBase errorBase) {
1513
super(ERROR_MESSAGE_HEADER + errorBase.getErrorMessage());
1614
this.errorBase = errorBase;
1715
}
18-
public HttpStatus getStatus() {
19-
return errorBase.getHttpStatus();
16+
17+
public ErrorBase getError() {
18+
return errorBase;
2019
}
2120
}

0 commit comments

Comments
 (0)