You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
469 B
18 lines
469 B
|
11 months ago
|
package kr.re.etri.autoflow.exception;
|
||
|
11 months ago
|
|
||
|
|
import org.springframework.http.HttpStatus;
|
||
|
|
import org.springframework.web.bind.annotation.ResponseStatus;
|
||
|
|
|
||
|
|
import java.io.Serial;
|
||
|
|
|
||
|
|
@ResponseStatus(HttpStatus.FORBIDDEN)
|
||
|
|
public class TokenRefreshException extends RuntimeException {
|
||
|
|
|
||
|
|
@Serial
|
||
|
|
private static final long serialVersionUID = 1L;
|
||
|
|
|
||
|
|
public TokenRefreshException(String token, String message) {
|
||
|
|
super(String.format("Failed for [%s]: %s", token, message));
|
||
|
|
}
|
||
|
|
}
|