SAException class

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

Visual Basic syntax

Public Class SAException Inherits System.Exception

C# syntax

public class SAException : System.Exception

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.