feat: email 중복 시 예외 클래스 생성

This commit is contained in:
dongHyo
2022-05-17 00:05:50 +09:00
parent f6c80ce1cc
commit 7ad71a0445

View File

@@ -0,0 +1,11 @@
package com.ticketing.server.user.exception;
public class DuplicateEmailException extends RuntimeException {
private static final String MESSAGE = "이미 존재하는 이메일 입니다. :: %s";
public DuplicateEmailException(String email) {
super(String.format(MESSAGE, email));
}
}