SAException class

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

Syntax
Visual Basic

Public Class SAException 
  Inherits DbException
C#

public class SAException : DbException
Remarks

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