While developing using sharepoint object model, you can show your custom message to the user if any error occur in the code.
By default sharepoint use his own message for any unknown error.
User the following code to through your custom message
throw new SPException("Ill Legal operation performed. Contact to your administrator.");
By default sharepoint use his own message for any unknown error.
User the following code to through your custom message
throw new SPException("Ill Legal operation performed. Contact to your administrator.");