The properties of the SQLException class are listed below. For a complete list of SQLException class members, see the SQLException Members topic.
Class | Gets the severity level of the error returned from the SQL Server adapter. |
Errors | Gets all errors generated by the SQL Server adapter. |
HelpLink (inherited from Exception) | Retrieves a link to the help file associated with this exception. |
InnerException (inherited from Exception) | Retrieves a reference to an inner (that may be nested) exception. |
LineNumber | Gets the line number that the SQL Server error occurred on. |
Message | Gets the error message that was generated from the SQL Server adapter. |
Number | Gets the error code returned from the SQL Server adapter. |
Procedure | Gets the name of the procedure that the SQL Server error occurred in. |
Server | Gets the name of the database server the error occurred on. |
Source | Gets the line of source that generated the error. |
StackTrace (inherited from Exception) | Retrieves the stack trace, which is valuable for determining where the error occurred. |
State | Gets the error state number returned from the SQL Server adapter. |
TargetSite (inherited from Exception) | [To be supplied.] |