OnException is a TIdServerThreadExceptionEvent property that represents the vent handler signalled when an Exception is raised during execition of a peer thread. OnException is called from TIdPeerThread using the Server context for the thread.
Applications must assign a procedure to the event handler to allow a response to the event notification.