com.houkunlin.system.common.aop.RequestRateLimiterException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of system-common-aop-starter Show documentation
Show all versions of system-common-aop-starter Show documentation
常用的 AOP 注解功能。
Commonly used AOP annotation features.
The newest version!
package com.houkunlin.system.common.aop;
import lombok.Getter;
/**
* 请求限流
*
* @author HouKunLin
*/
@Getter
public class RequestRateLimiterException extends RuntimeException {
private final RequestRateLimiter annotation;
public RequestRateLimiterException(RequestRateLimiter annotation) {
super(annotation.message());
this.annotation = annotation;
}
}