From bdbfb37a42f7ee0df749508c4241f51ee5d147a4 Mon Sep 17 00:00:00 2001 From: YoungJun Park Date: Tue, 5 Oct 2021 23:53:41 +0900 Subject: [PATCH] =?UTF-8?q?[#7]=20MemberNotFoundException=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/exception/MemberNotFoundException.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 api/src/main/java/com/teamnexters/lazy/api/exception/MemberNotFoundException.java diff --git a/api/src/main/java/com/teamnexters/lazy/api/exception/MemberNotFoundException.java b/api/src/main/java/com/teamnexters/lazy/api/exception/MemberNotFoundException.java new file mode 100644 index 0000000..6ccad96 --- /dev/null +++ b/api/src/main/java/com/teamnexters/lazy/api/exception/MemberNotFoundException.java @@ -0,0 +1,14 @@ +package com.teamnexters.lazy.api.exception; + +import com.teamnexters.lazy.common.error.ErrorCode; +import com.teamnexters.lazy.common.error.exception.BusinessException; +import lombok.Getter; + +@Getter +public class MemberNotFoundException extends BusinessException { + + public MemberNotFoundException(String memberIdx) { + super(String.format("Member Index [%s] not Found", memberIdx), ErrorCode.MEMBER_NOT_FOUND); + } + +}