*/ class Mage_Api_Exception extends Mage_Core_Exception { protected $_customMessage = null; public function __construct($faultCode, $customMessage=null) { parent::__construct($faultCode); $this->_customMessage = $customMessage; } /** * Custom error message, if error is not in api. * * @return unknown */ public function getCustomMessage() { return $this->_customMessage; } } // Class Mage_Api_Model_Resource_Exception End