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

io.nosqlbench.nb.api.OnError Maven / Gradle / Ivy

There is a newer version: 4.15.102
Show newest version
package io.nosqlbench.nb.api;

public enum OnError {
    Warn,
    Throw;

    public static OnError valueOfName(String name) {
        for (OnError value : OnError.values()) {
            if (value.toString().toLowerCase().equals(name.toLowerCase())) {
                return value;
            }
        }
        throw new RuntimeException("No matching OnError enum value for '" + name + "'");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy