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

io.questdb.griffin.engine.LimitOverflowException Maven / Gradle / Ivy

package io.questdb.griffin.engine;

import io.questdb.cairo.CairoException;
import io.questdb.std.ThreadLocal;

public class LimitOverflowException extends CairoException {
    private static final long serialVersionUID = 1L;
    private static final ThreadLocal tlException = new ThreadLocal<>(LimitOverflowException::new);

    public static LimitOverflowException instance() {
        LimitOverflowException ex = tlException.get();
        ex.message.clear();
        return ex;
    }

    public static LimitOverflowException instance(long limit) {
        LimitOverflowException ex = instance();
        ex.put("limit of ").put(limit).put(" exceeded").setCacheable(true);
        return ex;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy