2024-01-20 20:56:02 +07:00
|
|
|
package com.hakimfauzi23.boilerplatespringsecurity.jwt.exception;
|
2024-01-03 17:17:42 +07:00
|
|
|
|
|
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
|
|
import org.springframework.web.bind.annotation.ResponseStatus;
|
|
|
|
|
|
|
|
|
|
@ResponseStatus(HttpStatus.FORBIDDEN)
|
|
|
|
|
public class TokenRefreshException extends RuntimeException {
|
|
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
public TokenRefreshException(String token, String message) {
|
|
|
|
|
super(String.format("Failed for [%s]: %s", token, message));
|
|
|
|
|
}
|
|
|
|
|
}
|