Class DriverStationErrors

java.lang.Object
org.wpilib.driverstation.DriverStationErrors

public final class DriverStationErrors extends Object
Provides access to error and warning reporting functionality to the Driver Station.
  • Method Details

    • reportError

      public static void reportError(String error, boolean printTrace)
      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

      public static void reportError(String error, StackTraceElement[] stackTrace)
      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

      public static void reportWarning(String warning, boolean printTrace)
      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

      public static void reportWarning(String warning, StackTraceElement[] stackTrace)
      Report warning to Driver Station. Appends provided stack trace to warning message.
      Parameters:
      warning - The warning to report.
      stackTrace - The stack trace to append