Skip to main content
All docs

DataSourceFillErrorEventArgs.Exception Property

Gets the exception that caused the FillError event.

Namespace: DevExpress.DataAccess

Assembly: DevExpress.DataAccess.v22.2.dll

NuGet Package: DevExpress.DataAccess


public Exception Exception { get; }

Property Value

Type Description

The exception that caused the FillError event.


The code sample below creates a new data source, handles the FillError event to to process exceptions, and tries to populate the data source with data.

using DevExpress.DataAccess;
using DevExpress.DataAccess.Json;
// ...
// Create a new JSON source.
var jsonSource = new UriJsonSource() {
    Uri = new Uri(@"https://invalid.json")
// Assign the JSON source to the data source.
var datasource = new JsonDataSource() {
    JsonSource = jsonSource
datasource.FillError += (s, e) => {
    e.Handled = true;
    // Add code that handles the data source fill error here.
See Also