File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
src/main/java/org/sopt/sopkerton/common/exception/base Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
1
package org .sopt .sopkerton .common .exception .base ;
2
2
3
- import lombok .Getter ;
4
- import org .springframework .http .HttpStatus ;
5
3
6
4
/**
7
- * == 하위 도메인 예외는 본 Exception 클래스를 상속 받습니다. ==
5
+ * 하위 도메인 예외는 본 Exception 클래스를 상속 받습니다.
6
+ * - 객체 생
8
7
*/
9
- @ Getter
10
- public class ExceptionBase extends RuntimeException {
8
+ public abstract class ExceptionBase extends RuntimeException {
11
9
private static final String ERROR_MESSAGE_HEADER = "ERROR : " ;
12
10
13
11
private final ErrorBase errorBase ;
14
- public ExceptionBase (ErrorBase errorBase ) {
12
+ protected ExceptionBase (ErrorBase errorBase ) {
15
13
super (ERROR_MESSAGE_HEADER + errorBase .getErrorMessage ());
16
14
this .errorBase = errorBase ;
17
15
}
18
- public HttpStatus getStatus () {
19
- return errorBase .getHttpStatus ();
16
+
17
+ public ErrorBase getError () {
18
+ return errorBase ;
20
19
}
21
20
}
You can’t perform that action at this time.
0 commit comments