Class DriverStationErrors
java.lang.Object
org.wpilib.driverstation.DriverStationErrors
Provides access to error and warning reporting functionality to the Driver Station.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidreportError(String error, boolean printTrace) Report error to Driver Station.static voidreportError(String error, StackTraceElement[] stackTrace) Report error to Driver Station.static voidreportWarning(String warning, boolean printTrace) Report warning to Driver Station.static voidreportWarning(String warning, StackTraceElement[] stackTrace) Report warning to Driver Station.
-
Method Details
-
reportError
Report error to Driver Station. Optionally appends Stack trace to error message.- Parameters:
error- The error to report.printTrace- If true, append stack trace to error string
-
reportError
Report error to Driver Station. Appends provided stack trace to error message.- Parameters:
error- The error to report.stackTrace- The stack trace to append
-
reportWarning
Report warning to Driver Station. Optionally appends Stack trace to warning message.- Parameters:
warning- The warning to report.printTrace- If true, append stack trace to warning string
-
reportWarning
Report warning to Driver Station. Appends provided stack trace to warning message.- Parameters:
warning- The warning to report.stackTrace- The stack trace to append
-