WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataSourceException

    Show / Hide Table of Contents

    Class DataSourceException

    Represents an error that occurred during setting an external data source by the AutoComplete control.

    Inheritance
    System.Object
    System.Exception
    DataSourceException
    Implements
    System.Runtime.Serialization.ISerializable
    System.Runtime.InteropServices._Exception
    Inherited Members
    System.Exception.GetBaseException()
    System.Exception.ToString()
    System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
    System.Exception.GetType()
    System.Exception.Message
    System.Exception.Data
    System.Exception.InnerException
    System.Exception.TargetSite
    System.Exception.StackTrace
    System.Exception.HelpLink
    System.Exception.Source
    System.Exception.HResult
    System.Exception.SerializeObjectState
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.MemberwiseClone()
    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.

    PropertyValue
    The error message string.
    System.Exception.InnerExceptionA 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.

    PropertyValue
    The error message string.
    System.Exception.InnerExceptionThe inner exception reference.

    Implements

    System.Runtime.Serialization.ISerializable
    System.Runtime.InteropServices._Exception
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved