.. wxPython Phoenix documentation

   This file was generated by Phoenix's sphinx generator and associated
   tools, do not edit by hand.

   Copyright: (c) 2011-2025 by Total Control Software
   License:   wxWindows License

.. include:: headings.inc

.. currentmodule:: wx.lib.pubsub.core.listener

.. highlight:: python



.. _wx.lib.pubsub.core.listener.IListenerExcHandler:

==========================================================================================================================================
|phoenix_title|  **wx.lib.pubsub.core.listener.IListenerExcHandler**
==========================================================================================================================================

Interface class base class for any handler given to pub.setListenerExcHandler()
Such handler is called whenever a listener raises an exception during a 
pub.sendMessage(). Example::

    from pubsub import pub
    
    class MyHandler(pub.IListenerExcHandler):
        def __call__(self, listenerID, topicObj):
            ... do something with listenerID ...
            
    pub.setListenerExcHandler(MyHandler())



|

|class_hierarchy| Class Hierarchy
=================================

.. raw:: html

   <div class="collabsible-wrapper">
      <input id="collapsible-inheritance" class="collapsible-checkbox" type="checkbox">
      <label for="collapsible-inheritance" tabindex="0" title="Show inheritance diagram" class="collapsible-label">Inheritance diagram for class <strong>IListenerExcHandler</strong>:</label>
      <div class="collapsible-content">
         <p class="graphviz">
            <center><img src="_static/images/inheritance/wx.lib.pubsub.core.listener.IListenerExcHandler_inheritance.svg" alt="Inheritance diagram of IListenerExcHandler" usemap="#dummy" class="inheritance invert-in-dark-mode"/></center>
            <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.lib.pubsub.core.listener.IListenerExcHandler.html" title="Interface class base class for any handler given to pub.setListenerExcHandler()" alt="" coords="5,5,371,34"/> </map> 
         </p>
      </div>
   </div>
   <script type="text/javascript" src="_static/inheritancetoggle.js"></script>



|


|api| Class API
===============


.. class:: IListenerExcHandler

   Interface class base class for any handler given to pub.setListenerExcHandler()
   Such handler is called whenever a listener raises an exception during a 
   pub.sendMessage(). Example::
   
       from pubsub import pub
       
       class MyHandler(pub.IListenerExcHandler):
           def __call__(self, listenerID, topicObj):
               ... do something with listenerID ...
               
       pub.setListenerExcHandler(MyHandler())

