Contents

raiseBadArgumentException(_:_:_:)

Raises an error if the parameter is the wrong type or has an illegal value

Declaration

static func raiseBadArgumentException(_ element: Any!, _ attribute: NSAccessibility.Attribute!, _ value: Any!)

Discussion

Raises an error if a parameter is the wrong type or has an illegal value. This function can also be used to raise an error if an attempt is made to set an attribute’s value with the wrong type or an illegal value.

See Also

Functions