tangra logo
   
[ class tree: tangra_lib ] [ index: tangra_lib ] [ all elements ]
 

Source for file i_exception_listener.class.php

Documentation is available at i_exception_listener.class.php

  1. <?php
  2. // *** Tangra (Application Framework and Tools for PHP)
  3. // $Id$
  4. //
  5.  
  6. /**
  7.  * Contains interface I_Exception_Listener
  8.  *
  9.  * @package tangra_lib
  10.  * @subpackage interfaces
  11.  *
  12.  */
  13.  
  14.  
  15. /**
  16.  * When implemented shows that class can be registered in Exception_Handler
  17.  *
  18.  * Exception listeners are objects that are registered in Exception_Handler.
  19.  * Each exception is send to all listeners and they may take some action.
  20.  * Example for such listener is Exception_Listener_Screeen which prints the exception on the screen.
  21.  * Other potential examples are sending the exception to other server, etc.
  22.  *
  23.  * @package tangra_lib
  24.  * @subpackage interfaces
  25.  */
  26. interface I_Exception_Listener {
  27.  
  28.     /**
  29.      * Exception_Handler will call this method to send the exception ot listener
  30.      *
  31.      * @param Exception $e 
  32.      */
  33.     public function error(Exception $e);
  34. }