All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.founder.core.exception.RateLimitException Maven / Gradle / Ivy

package com.founder.core.exception;

import com.founder.core.model.Mode;

/**
 * @author kl (http://kailing.pub)
 * @since 2021/3/17
 */
public class RateLimitException extends RuntimeException {

    private final long extra;
    private final Mode mode;

    public RateLimitException(String message, long extra, Mode mode) {
        super(message);
        this.extra = extra;
        this.mode = mode;
    }

    public long getExtra() {
        return extra;
    }

    public Mode getMode() {
        return mode;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy