From d5436ddffcbe89c41aee80d871a27cefa4353590 Mon Sep 17 00:00:00 2001 From: Jonathan Shook Date: Thu, 2 Jun 2022 16:38:43 -0500 Subject: [PATCH] OpConfigErrors can now be thrown without a source --- .../main/java/io/nosqlbench/nb/api/errors/OpConfigError.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nb-api/src/main/java/io/nosqlbench/nb/api/errors/OpConfigError.java b/nb-api/src/main/java/io/nosqlbench/nb/api/errors/OpConfigError.java index b31537b24..163cedd83 100644 --- a/nb-api/src/main/java/io/nosqlbench/nb/api/errors/OpConfigError.java +++ b/nb-api/src/main/java/io/nosqlbench/nb/api/errors/OpConfigError.java @@ -27,7 +27,10 @@ public class OpConfigError extends ActivityInitError { private final String configSource; public OpConfigError(String error) { - this(error,null); + this(error,null,null); + } + public OpConfigError(String error, Throwable cause) { + this(error, null, cause); } public OpConfigError(String error, String configSource) {