Class CrashOnError

java.lang.Object
edu.wpi.first.epilogue.logging.errors.CrashOnError
All Implemented Interfaces:
ErrorHandler

public class CrashOnError extends Object implements ErrorHandler
An error handler implementation that will throw an exception if logging raised an exception. This is useful when running code in simulation or in JUnit tests to quickly identify errors in your code.
  • Constructor Details

  • Method Details

    • handle

      public void handle(Throwable exception, ClassSpecificLogger<?> logger)
      Description copied from interface: ErrorHandler
      Handles an exception that arose while logging.
      Specified by:
      handle in interface ErrorHandler
      Parameters:
      exception - the exception that occurred
      logger - the logger that was being processed that caused the error to occur