add module exception with WrongCredentialsException

This commit is contained in:
2024-09-10 00:51:09 +10:00
parent 4047ea5b9b
commit badf9f7741
4 changed files with 39 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
package sydney.cheng.microservice.commons.exceptions.auth;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.UNAUTHORIZED)
public class WrongCredentialsException extends RuntimeException {
public WrongCredentialsException(String message) {
super(message);
}
}