From 5e3fd2d016cb1a21e756eb0dd492aa0eb73ab37c Mon Sep 17 00:00:00 2001 From: sanghee0820 Date: Fri, 15 Nov 2024 01:16:13 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20=EB=B0=B0=EB=84=88=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=EC=BD=94=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../exception/code/BannerErrorCode.java | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/main/java/team7/inplace/global/exception/code/BannerErrorCode.java diff --git a/src/main/java/team7/inplace/global/exception/code/BannerErrorCode.java b/src/main/java/team7/inplace/global/exception/code/BannerErrorCode.java new file mode 100644 index 00000000..20809c4c --- /dev/null +++ b/src/main/java/team7/inplace/global/exception/code/BannerErrorCode.java @@ -0,0 +1,32 @@ +package team7.inplace.global.exception.code; + +import org.springframework.http.HttpStatus; + +public enum BannerErrorCode implements ErrorCode { + NOT_FOUND("B001", "배너를 찾을 수 없습니다.", HttpStatus.NOT_FOUND); + + private final String code; + private final String message; + private final HttpStatus httpStatus; + + BannerErrorCode(String code, String message, HttpStatus httpStatus) { + this.code = code; + this.message = message; + this.httpStatus = httpStatus; + } + + @Override + public HttpStatus httpStatus() { + return httpStatus; + } + + @Override + public String code() { + return code; + } + + @Override + public String message() { + return message; + } +}