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::ErrClass

SAErrorClass_t ErrClass() const;

Returns a class of error.

Return values

One of the following values from SAErrorClass_t enum:

  • SA_No_Error     No error occurred.
  • SA_UserGenerated_Error    User-generated error.
  • SA_Library_Error    The Library error occurred.
  • SA_DBMS_API_Error    DBMS API error occurred.

Remarks

A SAException object handles the next error classes:

  • User-generated errors
  • Library errors
  • DBMS API errors 

The Library errors are generated by the Library itself. It can be like detecting some mistake in passing arguments to the function or referencing the parameter with an inappropriate name. To get a Library-defined error text call ErrText method.

The DBMS API errors come to the Library from the DBMS Client or Server. In this case the Library returns an error code and text Client- or Server-defined. To get error code and error text returned by the server call ErrNativeCode and ErrText methods.

The User-generated exception is "SQLAPI++ compatible" exception thrown by the user. To throw user exception use throwUserException method. 

Server specific notes

No specific information.

See also

ErrText, ErrNativeCode, throwUserException

SAErrorClass_t

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.