Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | Using Request-Reply | The Server | Delivering Replies | Delivering Error Replies
 
Delivering Error Replies
The server application delivers an error reply to indicate that some sort of exception occurred while attempting to process the request event, as illustrated in the following example:
. . .
/* Make error reply event */
err = awNewBrokerEvent(c,"Adapter::error",
&err_event);
if (err != AW_NO_ERROR) {
printf("Error on awNewBrokerEvent\n");
return 0;
}
err = awDeliverErrorReplyEvent(c,e,err_event);
if (err != AW_NO_ERROR) {
printf(" Error on awDeliverErrorReplyEvent\n");
return 0;
}
awDeleteEvent(err_event);
. . .