Skip to content

Commit f07204a

Browse files
feat: add UserAlreadyExistsException for handling user registration conflicts
1 parent 6307bdd commit f07204a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.otavio.aifoodapp.exception;
2+
3+
4+
import org.springframework.http.HttpStatus;
5+
import org.springframework.web.bind.annotation.ResponseStatus;
6+
7+
@ResponseStatus(HttpStatus.CONFLICT)
8+
public class UserAlreadyExistsException extends RuntimeException{
9+
public UserAlreadyExistsException(String message) {
10+
super(message);
11+
}
12+
}

0 commit comments

Comments
 (0)