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.v18.2.dll
Declaration
Event Data
The UnhandledException event's data class is SchedulerUnhandledExceptionEventArgs. 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.