Class NBCLIErrorHandler

java.lang.Object
io.nosqlbench.engine.core.lifecycle.process.NBCLIErrorHandler

public class NBCLIErrorHandler extends Object
This class is meant to consolidate the error handling logic for the varios types of errors that may bubble up from the layers within NoSQLBench. As a layered system, some of the included libraries tend to layer the exceptions beyond a point of recognizability. The logic in this class should do the following:
  1. Report an error in the most intelligible way to the user.

That is all. When this error handler is invoked, it is a foregone conclusion that the scenario is not able to continue, else the error would have been trapped and handled internal to a lower-level class. It is the calling exception handler's responsibility to finally shut down the scenario cleanly and return appropriately. Thus, You should not throw errors from this class. You should only unwrap and explain errors, sending contents to the logfile as appropriate.

  • Constructor Details

    • NBCLIErrorHandler

      public NBCLIErrorHandler()
  • Method Details

    • handle

      public static int handle(Throwable t, boolean wantsStackTraces, String version)