35 lines
846 B
Java
35 lines
846 B
Java
/**
|
|
* Token Refresh Exception
|
|
*
|
|
* Thrown when token refresh operation fails.
|
|
*
|
|
* @author David Valera Melendez <david@valera-melendez.de>
|
|
* @since February 2025
|
|
*/
|
|
package com.company.auth.exception;
|
|
|
|
/**
|
|
* Exception thrown when token refresh fails
|
|
*/
|
|
public class TokenRefreshException extends RuntimeException {
|
|
|
|
/**
|
|
* Constructs a new TokenRefreshException with the specified detail message.
|
|
*
|
|
* @param message the detail message
|
|
*/
|
|
public TokenRefreshException(String message) {
|
|
super(message);
|
|
}
|
|
|
|
/**
|
|
* Constructs a new TokenRefreshException with the specified detail message and cause.
|
|
*
|
|
* @param message the detail message
|
|
* @param cause the cause
|
|
*/
|
|
public TokenRefreshException(String message, Throwable cause) {
|
|
super(message, cause);
|
|
}
|
|
}
|