XPC_TYPE_ERROR
A type that represents an error object.
Declaration
var XPC_TYPE_ERROR: xpc_type_t { get }Discussion
Errors in XPC are dictionaries, but xpc_get_type(_:) will return this type when given an error object. You cannot create an error object directly; XPC will only give them to handlers. These error objects have pointer values that are constant across the lifetime of your process and can be safely compared.
These constants are enumerated in the header for the connection object. Error dictionaries may reserve keys so that they can be queried to obtain more detailed information about the error. Currently, the only reserved key is XPC_ERROR_KEY_DESCRIPTION.