|   | ![[ Previous ]](navbprev.gif)  ![[ Contents ]](navbhome.gif)  ![[ Index ]](navbhelp.gif)  ![[ Next ]](navbnext.gif)  | 
Sends an exception code with message to the client.
void Ns_PdSendException(char *code, char *msg);
Whenever an exception is raised during the communction with the database, the proxy daemon sends the code with message to the client indicating the source of the problem.
    if ((state->exceptionCode[0] == '2') && (state->exceptionCode[1] 
== '3')) {
    	char *exceptionMsg = "Integrity constraint violation";
    	Ns_PdSendException(state->exceptionCode, exceptionMsg);
    }