aspnet-devexpress-dot-web-dot-aspxtreelist-dot-aspxtreelist-3195c15e.md
Enables you to provide custom error descriptions for exceptions raised during a callback.
Namespace : DevExpress.Web.ASPxTreeList
Assembly : DevExpress.Web.ASPxTreeList.v25.2.dll
NuGet Package : DevExpress.Web
public event TreeListCustomErrorTextEventHandler CustomErrorText
Public Event CustomErrorText As TreeListCustomErrorTextEventHandler
The CustomErrorText event's data class is TreeListCustomErrorTextEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| ErrorText | Gets or sets the error text. |
| Exception | Gets the exception. |
The CustomErrorText event occurs when any exception is raised within the ASPxTreeList during a callback, and allows you to change the error text displayed by default. This can be useful, for example, if you want to localize error messages.
Use the TreeListCustomErrorTextEventArgs.ErrorText property to specify the error text. An exception can be obtained using the TreeListCustomErrorTextEventArgs.Exception property.
See Also