Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere .NET 2.0 API reference » iAnywhere.Data.SQLAnywhere namespace (.NET 2.0)


SAException class

The exception that is thrown when SQL Anywhere returns a warning or error.

Visual Basic

Public Class SAException 
  Inherits DbException

public class SAException : DbException

There is no constructor for SAException. Typically, an SAException object is declared in a catch. For example:

catch( SAException ex )
    MessageBox.Show( ex.Errors[0].Message, "Error" );

For information about error handling, see Error handling and the SQL Anywhere .NET Data Provider.

See also

SAException members
Errors property
Message property
NativeError property
Source property
GetObjectData method