-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat : Blocked된 유저가 접속 시 Exception 처리
- Loading branch information
Showing
3 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/java/com/sluv/server/domain/auth/exception/UserBlockedException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.sluv.server.domain.auth.exception; | ||
|
||
import org.springframework.http.HttpStatus; | ||
|
||
public class UserBlockedException extends AuthException { | ||
private static final int ERROR_CODE = 2023; | ||
private static final String MESSAGE = "정지된 유저입니다."; | ||
private static final HttpStatus STATUS = HttpStatus.BAD_REQUEST; | ||
|
||
public UserBlockedException() { | ||
super(ERROR_CODE, STATUS, MESSAGE); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters