The exception that is thrown when SQL Anywhere returns a warning or error.
Public Class SAException Inherits System.Exception
public class SAException : System.Exception
All members of SAException class, including all inherited members.
Name | Description |
---|---|
GetBaseException method (Inherited from System.Exception) |
When overridden in a derived class, returns the System.Exception that is the root cause of one or more subsequent exceptions. |
Sets the SerializationInfo with information about the exception. | |
GetType method (Inherited from System.Exception) |
Gets the runtime type of the current instance. |
ToString method (Inherited from System.Exception) |
Creates and returns a string representation of the current exception. |
Data property (Inherited from System.Exception) |
Gets a collection of key/value pairs that provide additional user-defined information about the exception. |
Returns a collection of one or more SAError objects. | |
HelpLink property (Inherited from System.Exception) |
Gets or sets a link to the help file associated with this exception. |
HResult property (Inherited from System.Exception) |
Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. |
InnerException property (Inherited from System.Exception) |
Gets the System.Exception instance that caused the current exception. |
Returns the text describing the error. | |
Returns database-specific error information. | |
Returns the name of the provider that generated the error. | |
StackTrace property (Inherited from System.Exception) |
Gets a string representation of the frames on the call stack at the time the current exception was thrown. |
TargetSite property (Inherited from System.Exception) |
Gets the method that throws the current exception. |
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.
GetObjectData method
Errors property
Message property
NativeError property
Source property
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |