add module exception with WrongCredentialsException
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user