New answers tagged error-handling
If you want your own Error message, you have to make an application page (e.g. "error.aspx") and design it as per your requirement. Then set some properties like: properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl; properties.RedirectUrl = "Error.aspx page's url"; Then this page will be displayed instead of the server error page.
Top 50 recent answers are included