Class DataSourceException
Represents an error that occurred during setting an external data source by the AutoComplete control.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class DataSourceException : Exception, ISerializable, _Exception
Remarks
This exception packages the exception that was raised by the system when there is a problem with the data source. The original exception can be accessed through the System.Exception.InnerException property.
The most common source for this exception to be raised is an incorrect Data source specified. Please refer to the DataSource property for more information.
Constructors
DataSourceException(String)
Initializes a new instance of the DataSourceException class using a message.
Declaration
public DataSourceException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message for the exception. |
Remarks
The content of the message
parameter is intended to be
understood by humans. The caller of this constructor is required to
ensure that this string has been localized for the current system culture.
This message takes into account the current system culture.
The following table shows the initial property values for an instance of DataSourceException.
Property | Value |
---|---|
The error message string. | |
System.Exception.InnerException | A null reference (Nothing in Visual Basic). |
DataSourceException(String, Exception)
Overloaded. Initializes a new instance of the DataSourceException class using a message and an original exception.
Declaration
public DataSourceException(string message, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message for the exception. |
System.Exception | inner | The original exception. |
Remarks
The content of the message
parameter is intended to be
understood by humans. The caller of this constructor is required to
ensure that this string has been localized for the current system culture.
This message takes into account the current system culture.
The inner
parameter is the original exception
raised by the system in the process of setting the data source.
The following table shows the initial property values for an instance of DataSourceException.
Property | Value |
---|---|
The error message string. | |
System.Exception.InnerException | The inner exception reference. |