package com.cameleer.server.app.license;

public class LicenseCapExceededException extends RuntimeException {
    private final String limitKey;
    private final long current;
    private final long cap;

    public LicenseCapExceededException(String limitKey, long current, long cap) {
        super("license cap reached: " + limitKey + " current=" + current + " cap=" + cap);
        this.limitKey = limitKey;
        this.current = current;
        this.cap = cap;
    }

    public String limitKey() { return limitKey; }
    public long current() { return current; }
    public long cap() { return cap; }
}
