These constants identify errors that can occur when accessing net services.


enum ErrorCode : Int



case unknownError

An unknown error occurred.

case collisionError

The service could not be published because the name is already in use. The name could be in use locally or on another system.

case notFoundError

The service could not be found on the network.

case activityInProgress

The net service cannot process the request at this time. No additional information about the network state is known.

case badArgumentError

An invalid argument was used when creating the NSNetService object.

case cancelledError

The client canceled the action.

case invalidError

The net service was improperly configured.

case timeoutError

The net service has timed out.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software