Cgiapp2_Exception implements an Observer pattern. You may build observer classes that receive notifications when Cgiapp2_Exceptions (or classes derived from it) are raised. Such classes need only have an event() method that accepts a Cgiapp2_Exception object, and have to register their class or an instance with Cgiapp2_Exception using attach().