Skip to main content
All docs
V23.2

IErrorFilteringService.Filter(IEnumerable<ErrorDataContract>) Method

Implement the method to filter errors in the Error List panel.

Namespace: DevExpress.XtraReports.Web.ReportDesigner.Services

Assembly: DevExpress.XtraReports.v23.2.Web.dll

NuGet Package: DevExpress.Web.Reporting.Common

Declaration

IEnumerable<ErrorDataContract> Filter(
    IEnumerable<ErrorDataContract> errors
)

Parameters

Name Type Description
errors IEnumerable<DevExpress.XtraReports.Web.Native.ClientControls.DataContracts.ErrorDataContract>

A collection of report errors detected by the Report Designer.

Returns

Type Description
IEnumerable<DevExpress.XtraReports.Web.Native.ClientControls.DataContracts.ErrorDataContract>

A collection of report errors which should be shown in the Error List panel.

Remarks

The following code snippet is a service that hides all errors related to report layout:

class CustomErrorFilter : IErrorFilteringService {
    public IEnumerable<ErrorDataContract> Filter(IEnumerable<ErrorDataContract> errors) {
        return errors.Where(e => e.ErrorSource != DevExpress.XtraReports.Diagnostics.ErrorSource.ReportLayout);
    }
}

For more information on Error List panel, review the following help topic: Error List.

See Also