OSStatus

extension OSStatus
  • Check that the value of an OSStatus is noErr otherwise throw an NSError exception.

    Throws

    throws exception if not noErr

    Declaration

    Swift

    public func check() throws