ExceptionHandler.GetFaultExceptionMessage(FaultException) Method

Enables you to handle FaultException that occurs on the server side.

Namespace: DevExpress.XtraReports.Web.ClientControls

Assembly: DevExpress.XtraReports.v21.1.Web.dll


public virtual string GetFaultExceptionMessage(
    FaultException ex


Name Type Description
ex FaultException

An exception that occurs on the server side.


Type Description

A string to show in a browser when an error occurs.


The GetFaultExceptionMessage method is called whenever FaultException occurs (for instance, when you pass an invalid URL to a report storage).

The following classes are inherited from the base ExceptionHandler class and provide this method:

The code snippet below demonstrates how to create a descendant from the ReportDesignerExceptionHandler class and override the GetExceptionMessage method to return a custom message.

using System;
using System.ServiceModel;
using DevExpress.XtraReports.Web.ReportDesigner.Services;

public class CustomReportDesignerExceptionHandler : ReportDesignerExceptionHandler {
    public override string GetFaultExceptionMessage(FaultException ex) {
        return "FaultException occured.";

To register the implemented exception handler, use the static DefaultReportDesignerContainer.Register method at the application’s startup as shown below:

void Application_Start(object sender, EventArgs e) {
    // ...
        Register<IReportDesignerExceptionHandler, CustomReportDesignerExceptionHandler>();

See the following topics for more information:

See Also