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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(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:ErrorHandler
Handles an exception that arose while logging.- Specified by:
handle
in interfaceErrorHandler
- Parameters:
exception
- the exception that occurredlogger
- the logger that was being processed that caused the error to occur
-