Getting broken references and errors in components

I need to automate a QC step to determin if a component in an assembly (or the assembly itself) has a broken reference or errors. I have learned to iterate through the components in an assembly using the following simple code but can't find what I would use to get so kind of error or reference status on the components.

componentList = swDoc.getComponents("True")
        For Each name As Object In componentList
            MsgBox(name.GetPathName.ToString)
        Next
SolidworksApi macros