From 10e88e25d6eaceec15bd905264218c6846d94824 Mon Sep 17 00:00:00 2001 From: 101 Date: Mon, 22 Jan 2024 19:44:04 +0900 Subject: [PATCH] Custom exception --- .../global/error/exception/CustomException.java | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/main/java/com/example/daemawiki/global/error/exception/CustomException.java diff --git a/src/main/java/com/example/daemawiki/global/error/exception/CustomException.java b/src/main/java/com/example/daemawiki/global/error/exception/CustomException.java new file mode 100644 index 00000000..d84ad1bd --- /dev/null +++ b/src/main/java/com/example/daemawiki/global/error/exception/CustomException.java @@ -0,0 +1,11 @@ +package com.example.daemawiki.global.error.exception; + +import com.example.daemawiki.global.error.ErrorCode; +import lombok.AllArgsConstructor; +import lombok.Getter; + +@Getter +@AllArgsConstructor +public class CustomException extends RuntimeException { + private final ErrorCode errorCode; +} \ No newline at end of file