From 56d321432289a77a2e28218a8253973b2569b13b Mon Sep 17 00:00:00 2001 From: yummygyudon Date: Sat, 25 Nov 2023 03:10:38 +0900 Subject: [PATCH] =?UTF-8?q?FIX=20:=20=EB=B6=80=EB=AA=A8=20=ED=81=B4?= =?UTF-8?q?=EB=9E=98=EC=8A=A4=EB=A1=9C=EB=A7=8C=20=EC=93=B0=EC=97=AC?= =?UTF-8?q?=EC=95=BC=20=ED=95=98=EA=B8=B0=20=EB=95=8C=EB=AC=B8=EC=97=90=20?= =?UTF-8?q?=EC=B6=94=EC=83=81=ED=81=B4=EB=9E=98=EC=8A=A4=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=ED=99=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/exception/base/ExceptionBase.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/sopt/sopkerton/common/exception/base/ExceptionBase.java b/src/main/java/org/sopt/sopkerton/common/exception/base/ExceptionBase.java index 6a5184e..014e7a2 100644 --- a/src/main/java/org/sopt/sopkerton/common/exception/base/ExceptionBase.java +++ b/src/main/java/org/sopt/sopkerton/common/exception/base/ExceptionBase.java @@ -1,21 +1,20 @@ package org.sopt.sopkerton.common.exception.base; -import lombok.Getter; -import org.springframework.http.HttpStatus; /** - * == 하위 도메인 예외는 본 Exception 클래스를 상속 받습니다. == + * 하위 도메인 예외는 본 Exception 클래스를 상속 받습니다. + * - 객체 생 */ -@Getter -public class ExceptionBase extends RuntimeException{ +public abstract class ExceptionBase extends RuntimeException{ private static final String ERROR_MESSAGE_HEADER = "ERROR : "; private final ErrorBase errorBase; - public ExceptionBase(ErrorBase errorBase) { + protected ExceptionBase(ErrorBase errorBase) { super(ERROR_MESSAGE_HEADER + errorBase.getErrorMessage()); this.errorBase = errorBase; } - public HttpStatus getStatus() { - return errorBase.getHttpStatus(); + + public ErrorBase getError() { + return errorBase; } }