The requested page is not available for the requested platform. You are viewing the content for Default platform.

ErrorHandling.SetPageError(Exception) Method

Handles the specified exception.

Namespace: DevExpress.ExpressApp.Web

Assembly: DevExpress.ExpressApp.Web.v19.1.dll


public void SetPageError(
    Exception error
Public Sub SetPageError(
    error As Exception


Name Type Description
error Exception

A System.Exception object that is the error that occurred.


This method performs the following:

  • creates the ErrorInfo object corresponding to the specified exception;
  • registers the ErrorInfo object for the current context (the registered object is used by the ErrorInfoControl);
  • sends an alert to the application administrator, if possible (see ErrorHandling.CanSendAlertToAdmin);
  • logs the exception information to the application log file (excluding tracing information).

An example of using this method is provided in the Error Handling in ASP.NET and Mobile Applications topic.

See Also