Class ChoreoAlert.MultiAlert

java.lang.Object
org.wpilib.util.Alert
choreo.util.ChoreoAlert.MultiAlert
All Implemented Interfaces:
AutoCloseable
Enclosing class:
ChoreoAlert

public static class ChoreoAlert.MultiAlert extends org.wpilib.util.Alert
An alert that can have multiple causes. Utilizes a function to generate an error message from a list of causes.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.wpilib.util.Alert

    org.wpilib.util.Alert.Level
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds an error causer to this alert, and pushes the alert to NetworkTables if it is not already present.

    Methods inherited from class org.wpilib.util.Alert

    close, get, getLevel, getText, set, setText

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • addCause

      public void addCause(String name)
      Adds an error causer to this alert, and pushes the alert to NetworkTables if it is not already present.
      Parameters:
      name - The name of the error causer