mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
update error message
This commit is contained in:
parent
144d7dea65
commit
2b774ff0d1
@ -16,6 +16,7 @@
|
||||
|
||||
package io.nosqlbench.virtdata.library.basics.shared.from_long.to_collection;
|
||||
|
||||
import io.nosqlbench.nb.api.errors.BasicError;
|
||||
import io.nosqlbench.virtdata.api.annotations.*;
|
||||
|
||||
import java.util.Arrays;
|
||||
@ -70,8 +71,8 @@ public class Map implements LongFunction<java.util.Map<Object, Object>> {
|
||||
objfuncs = Arrays.copyOfRange(objfuncs, 1, objfuncs.length);
|
||||
this.mode=Mode.VarSized;
|
||||
} else {
|
||||
throw new RuntimeException("An even number of functions must be provided, unless "
|
||||
+ "the first one produces a numeric value.");
|
||||
throw new BasicError("An even number of functions must be provided, unless "
|
||||
+ "the first one produces a numeric value.");
|
||||
}
|
||||
} else {
|
||||
this.mode = Mode.Tuples;
|
||||
|
Loading…
Reference in New Issue
Block a user