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

Class: Exception_Handler

Source Location: /core/exception_handler.class.php

Class Exception_Handler

Class Overview

Used for central registar for exception listeners.

Exception_Handler is used to register all exception listeners and call each one of them when exception occures. Normally this class is not used directly by the users.

Located in /core/exception_handler.class.php [line 29]

Tangra_Class
   |
   --Exception_Handler

Properties

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Tangra_Class

Tangra_Class::get_class_name()
Alias of get_class(). Exist because of historical reasons.
Tangra_Class::__set()
Overides PHP built-in method and just throws exception if called. Purpose - to "forbid" autosetting of nonexisting class properties.

[ Top ]
Property Summary
array   $listeners   Simple array that contains registered listeners

[ Top ]
Method Summary
boolean   add_listener()   Adds new listener
void   handler()   Calls each of the registered listeners with exceptin $e as parameter.

[ Top ]
Properties
array   $listeners = array() [line 36]

Simple array that contains registered listeners

API Tags:
Access:  private


[ Top ]
Methods
add_listener  [line 45]

  boolean add_listener( I_Exception_Listener $el  )

Adds new listener

Parameters:
I_Exception_Listener   $el: 

API Tags:
Return:  Returns true on success and false on failure
Access:  public


[ Top ]
handler  [line 55]

  void handler( $e  )

Calls each of the registered listeners with exceptin $e as parameter.

Parameters:
Exception   $e: 

API Tags:
Access:  public


[ Top ]