[Prev] [Next] [Top] [Bottom] [Contents] (81 out of 193)

SaMsgErrHandler

Definition for error handler functions.

Synopsis

#include "WorkingDialog.h"

typedef void (*SaMsgErrHandler) (int, int, int, char *, int, int);

int type;

int major;

int minor;

char *message;

int aux1;

int aux2;

Inputs

type
SGESYBASE, SGEORACLE, SGEINFORMIX, DBUIMX or OPSYS
major
major code, generally the error code from the RDBMS vendor.
minor
minor code, meaning varies
message
the message string associated with the error.
aux1
auxiliary value
aux2
auxiliary value, generally contains offset to where the error occurred in the SQL statement that caused the error.

Return Values

None.

Description

SaMsgErrHandler is registered by SaSetMsgErrHandler(SaMsgErrHandler).

The data that your Error Handler function is called with depends upon the type of message. This is what gets passed to an error handler function when an error occurs. The message called from your Error Handler depends upon the error and/or data.

Error Type 1: Sybase

Error Type 2: Oracle

Error Type 3: Informix

Error Type 4: Login Failure (Sybase, Oracle and Informix)

See Also


[Prev] [Next] [Top] [Bottom] [Contents] (81 out of 193)