feat: email 중복 시 예외 클래스 생성
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user