Package edu.wpi.first.wpilibj.util
Class ErrorMessages
- java.lang.Object
-
- edu.wpi.first.wpilibj.util.ErrorMessages
-
public final class ErrorMessages extends Object
Utility class for common WPILib error messages.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TrequireNonNullParam(T obj, String paramName, String methodName)Requires that a parameter of a method not be null; prints an error message with helpful debugging instructions if the parameter is null.
-
-
-
Method Detail
-
requireNonNullParam
public static <T> T requireNonNullParam(T obj, String paramName, String methodName)Requires that a parameter of a method not be null; prints an error message with helpful debugging instructions if the parameter is null.- Parameters:
obj- The parameter that must not be null.paramName- The name of the parameter.methodName- The name of the method.
-
-