Package edu.wpi.first.hal.can
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 Summary
ConstructorDescriptionCANStreamOverflowException
(CANStreamMessage[] messages, int messagesRead) Constructs a new CANStreamOverflowException. -
Method Summary
Modifier and TypeMethodDescriptionGets the messages that were successfully read.int
Gets the count of messages that were successfully read.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CANStreamOverflowException
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. UsegetMessagesRead()
to determine how many messages in the returned array are valid.- Returns:
- the messages
-
getMessagesRead
Gets the count of messages that were successfully read.- Returns:
- count of messages
-