Class CANStreamOverflowException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
edu.wpi.first.hal.can.CANStreamOverflowException
All Implemented Interfaces:
Serializable

Exception indicating that a CAN stream overflowed at some point between reads, therefore some messages were lost. This exception contains any messages that were successfully read during the operation that threw the exception.
See Also:
  • Constructor Details

    • CANStreamOverflowException

      public CANStreamOverflowException(CANStreamMessage[] messages, int messagesRead)
      Constructs a new CANStreamOverflowException.
      Parameters:
      messages - The messages that were read successfully.
      messagesRead - The length of messages read successfully.
  • Method Details

    • getMessages

      Gets the messages that were successfully read. Use getMessagesRead() to determine how many messages in the returned array are valid.
      Returns:
      the messages
    • getMessagesRead

      public int getMessagesRead()
      Gets the count of messages that were successfully read.
      Returns:
      count of messages