SCCopyLastError()
Returns an error or status code associated with the most recent function call.
Declaration
func SCCopyLastError() -> CFErrorReturn Value
The most recent status or error code generated as the result of calling a function defined by the System Configuration framework. The code is represented by a Core Foundation CFErrorRef opaque type.
Discussion
Call the CFErrorGetCode(_:) function on the returned object to get the underlying error-code integer. See Status and Error Codes for descriptions of these codes. For more on CFErrorRef objects, see CFError.