Developing Database Drivers for AOLserver -- Ns_PdSendException

### Ns_PdSendException

#### Overview

Sends an exception code with message to the client.

#### Syntax

        void Ns_PdSendException(char *code, char *msg);

#### Description

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.

#### Example

        if ((state->exceptionCode[0] == '2') && (state->exceptionCode[1]
    == '3')) {
        	char *exceptionMsg = "Integrity constraint violation";
        	Ns_PdSendException(state->exceptionCode, exceptionMsg);
        }

Top of Page
Copyright © 1998-99 America Online, Inc.