assertComponentArgs

open fun assertComponentArgs(@NonNull componentName: String, @NonNull excludeClassName: String, @NonNull objs: Array<Any>): Boolean

Ensure a component is safe to instantiate by checking for null objects. Errors caused by null objects are logged and the component is added to the unusable components list. Components in the unusable components list will not have their errors logged. Telemetry will be added to a BunyipsOpMode if it is running.

Return

Whether the component is safe to instantiate

Parameters

componentName

name of the subsystem

excludeClassName

the class name that should be attempted to be suppressed from caught errors (experimental as this will suppress all class name instances, note that this suppression does not apply to Logcat so debugging is not affected)

objs

Objects to check for null