Home How To Online Documentation Support Download Order

 

 

 

SACommand
SAConnection
SAException
SAField
SAParam

SAString
SADateTime
SANumeric
SAInterval

Enums and Typedefs

  

Usage

Class Members

Examples

SAException::throwUserException

static void throwUserException( int nUserCode , const char *lpszFormat , ... );
throw (SAUserException);

Throws an exception to stop an end-user operation.

Parameters

nUserCode.    An integer value of user-defined error code.

lpszFormat.    A format-control string.

Remarks

Call throwUserException method to use the throw/catch exception mechanism for application-specific exceptions and to write formatted data to error text in the same way that sprintf formats data into a C-style character array.

throwUserException method throws an exception of SAUserException class derived from SQLAPI++ SAException class. That's why user exception can be handled by usual SAException handler.

Server specific notes

No specific information.

Problems and Questions

If you haven't found the answer to your questions or have some problems on using the Library, please, send e-mail to howto@sqlapi.com.