Beispiel #1
0
 /**
  * @see parent
  *
  * @param Bronto_Api $api
  * @param Bronto_Api_Exception $exception
  */
 public function onError($api, $exception)
 {
     if ($exception instanceof Bronto_Api_Exception) {
         if ($request = $exception->getRequest()) {
             Mage::helper('bronto_common')->writeDebug(var_export($request, true));
         }
         if ($response = $exception->getResponse()) {
             Mage::helper('bronto_common')->writeDebug(var_export($response, true));
         }
     }
 }