Class CrashOnError
java.lang.Object
edu.wpi.first.epilogue.logging.errors.CrashOnError
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(Throwable exception, ClassSpecificLogger<?> logger) Handles an exception that arose while logging.
-
Constructor Details
-
CrashOnError
public CrashOnError()Default constructor.
-
-
Method Details
-
handle
Description copied from interface:ErrorHandlerHandles an exception that arose while logging.- Specified by:
handlein interfaceErrorHandler- Parameters:
exception- the exception that occurredlogger- the logger that was being processed that caused the error to occur
-