OnListenException is a TIdListenExceptionEvent property that represents the event handler signalled when an exception is raised during execution of a TIdListenerThread. OnListenException is accessed using the server context in the listener thread.
Applications must assign a procedure to the event handler to allow a response to the event notification.