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

ASPxScheduler.UnhandledException Event

Enables you to catch an unhandled exception in ASPxScheduler which occurs during a callback and stop its propagation beyond the control.

Namespace: DevExpress.Web.ASPxScheduler

Assembly: DevExpress.Web.ASPxScheduler.v19.2.dll

Declaration

public event SchedulerUnhandledExceptionEventHandler UnhandledException
Public Event UnhandledException As SchedulerUnhandledExceptionEventHandler

Event Data

The UnhandledException event handler receives an argument of the SchedulerUnhandledExceptionEventArgs type. The following properties provide information specific to this event.

Property Description
Exception Gets the exception which is not handled by the Scheduler control.
Handled Gets or sets whether an event was handled. If it was handled, the exception is not propagated.

Remarks

If you subscribe to the UnhandledException event and set the SchedulerUnhandledExceptionEventArgs.Handled property value to true, the exception will not propagate beyond the ASPxScheduler control and the ASPxWebControl.CallbackError event will not occur.

If you use the redirection mechanism described in the Redirection on a Callback Error article, then any callback error causes a redirect to the specified location. By handling the UnhandledException event you can stop the redirect from happening.

See Also