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

chao.java.tools.servicepool.debug.Debug Maven / Gradle / Ivy

package chao.java.tools.servicepool.debug;

import java.util.ArrayList;
import java.util.List;

/**
 * @author luqin
 * @since 2019-08-26
 */
public class Debug {

    private static List errors = new ArrayList<>();

    private static List throwables = new ArrayList<>();

    public static void addError(String err) {
        if (err != null && err.length() != 0) {
            errors.add(err);
        }
    }

    public static void addThrowable(Throwable e) {
        if (e != null) {
            throwables.add(e);
        }
    }

    public static List throwables() {
        return throwables;
    }

    public static List errors() {
        return errors;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy