Package com.team2813.lib2813.util
Class InputValidation
java.lang.Object
com.team2813.lib2813.util.InputValidation
-
Method Summary
Modifier and TypeMethodDescriptionstatic intcheckCanId(int id) Checks if the input is a valid CAN Id, and throws an exception if it isn't
-
Method Details
-
checkCanId
public static int checkCanId(int id) Checks if the input is a valid CAN Id, and throws an exception if it isn't- Parameters:
id- the can id, between 0 and 62, inclusive- Returns:
- the
id - Throws:
InvalidCanIdException- if the id is invalid
-