Bat/src/main/java/cc/fascinated/bat/exception/RateLimitException.java

12 lines
331 B
Java

package cc.fascinated.bat.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.TOO_MANY_REQUESTS)
public class RateLimitException extends RuntimeException {
public RateLimitException(String message) {
super(message);
}
}