mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
docs updates
This commit is contained in:
parent
903a4ca461
commit
cfdcff6c2a
@ -201,6 +201,12 @@ public interface Activity extends Comparable<Activity>, ActivityDefObserver, Pro
|
||||
|
||||
ErrorMetrics getExceptionMetrics();
|
||||
|
||||
/**
|
||||
* When a driver needs to identify an error uniquely for the purposes of
|
||||
* routing it to the correct error handler, or naming it in logs, or naming
|
||||
* metrics, override this method in your activity.
|
||||
* @return A function that can reliably and safely map an instance of Throwable to a stable name.
|
||||
*/
|
||||
default Function<Throwable,String> getErrorNameMapper() {
|
||||
return t -> t.getClass().getSimpleName();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user