Mage_Core_Exception Class Reference

Inheritance diagram for Mage_Core_Exception:

Mage_Adminhtml_Exception Mage_Api_Exception Mage_Core_Model_Session_Exception Mage_Core_Model_Store_Exception Mage_Cron_Exception Mage_Customer_Exception Mage_Directory_Exception Mage_Eav_Exception Mage_GoogleCheckout_Exception Mage_Tax_Exception

List of all members.

Public Member Functions

 addMessage (Mage_Core_Model_Message_Abstract $message)
 getMessages ($type='')

Protected Attributes

 $_messages = array()


Detailed Description

Definition at line 36 of file Exception.php.


Member Function Documentation

addMessage ( Mage_Core_Model_Message_Abstract message  ) 

Definition at line 40 of file Exception.php.

00041     {
00042         if (!isset($this->_messages[$message->getType()])) {
00043             $this->_messages[$message->getType()] = array();
00044         }
00045         $this->_messages[$message->getType()][] = $message;
00046         return $this;
00047     }   

getMessages ( type = ''  ) 

Definition at line 49 of file Exception.php.

00050     {
00051         if ('' == $type) {
00052             $arrRes = array();
00053             foreach ($this->_messages as $messageType => $messages) {
00054                 $arrRes = array_merge($arrRes, $messages);
00055             }
00056             return $arrRes;
00057         }
00058         return isset($this->_messages[$type]) ? $this->_messages[$type] : array();
00059     }


Member Data Documentation

$_messages = array() [protected]

Definition at line 38 of file Exception.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:55 2009 for Magento by  doxygen 1.5.8