[XPC] Are there errors that are only reported to a send message replyBlock?

Context

The event handler of an xpc_connection_t object named myConnection is set and handles XPC_TYPE_ERROR objects:

xpc_connection_set_event_handler(myConnection, ^(xpc_object_t object) {
});

A message is sent using:

xpc_connection_send_message_with_reply(myConnection, myMessage , myQueue, ^(xpc_object_t object) {
});

The documentation for the well-known XPC_ERROR_ dictionaries and for xpc_connection_set_event_handler seems to suggest that all the errors received via the reply block will also be received by the event handler.

Question

Are there error cases where only the reply block of xpc_connection_send_message_with_reply will receive an XPC_ERROR*_ object?

Answered by DTS Engineer in 741586022

Are there error cases where only the reply block of xpc_connection_send_message_with_reply will receive an XPC_ERROR object?

No.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

Are there error cases where only the reply block of xpc_connection_send_message_with_reply will receive an XPC_ERROR object?

No.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[XPC] Are there errors that are only reported to a send message replyBlock?
 
 
Q