15 lines
472 B
Java
15 lines
472 B
Java
package com.hakimfauzi23.boilerplatespringsecurity.jwt.exception;
|
|
|
|
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));
|
|
}
|
|
}
|