Raises the Error event.
Assembly: System (in System.dll)
is called when an error occurs.
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.Notes to Inheritors
When overriding in a derived class, be sure to call the base class's method.