library/Garp/Service/Gofilex.php
protected function _throwException(Exception $e, $method, $args = array()) {
        $this->_logTraffic();

        // Mail Amstelfilm about this error
        $ini = Zend_Registry::get('config');
        if (!empty($ini->gofilex->errorReportEmailAddress)) {
            $to = $ini->gofilex->errorReportEmailAddress;
            $subject = 'Gofilex error report';
            $message = "Hallo,\n\r\n\r".
                "Er is een Gofilex fout opgetreden. Hier vindt u de details:\n\r\n\r".
                "Fout: ".$e->getMessage()."\n\r".
                "Gofilex API functie: $method\n\r".
                "Parameters:\n";
            foreach ($args as $key => $value) {
                $message .= "$key: $value\n\r";
            }

            // Especially interesting is the submitted POST data, since here
            // user-submitted movie data will reside
            $message .= "\n\rPOST data (ingevuld in het formulier):\n\r";
            if (empty($_POST)) {
                $message .= "-\n\r";
            } else {
                foreach ($_POST as $key => $value) {
                    $message .= "$key: $value\n\r";
                }
            }

            $mailer = new Garp_Mailer();
            $mailer->send(array(
                'to' => $to,
                'subject' => $subject,
                'message' => $message
            ));
        }

        throw $e;
    }
protected function _throwException(Exception $e, $method, $args = array()) {
        $this->_logTraffic();

        // Mail Amstelfilm about this error
        $ini = Zend_Registry::get('config');
        if (!empty($ini->gofilex->errorReportEmailAddress)) {
            $to = $ini->gofilex->errorReportEmailAddress;
            $subject = 'Gofilex error report';
            $message = "Hallo,\n\r\n\r".
                "Er is een Gofilex fout opgetreden. Hier vindt u de details:\n\r\n\r".
                "Fout: ".$e->getMessage()."\n\r".
                "Gofilex API functie: $method\n\r".
                "Parameters:\n";
            foreach ($args as $key => $value) {
                $message .= "$key: $value\n\r";
            }

            // Especially interesting is the submitted POST data, since here
            // user-submitted movie data will reside
            $message .= "\n\rPOST data (ingevuld in het formulier):\n\r";
            if (empty($_POST)) {
                $message .= "-\n\r";
            } else {
                foreach ($_POST as $key => $value) {
                    $message .= "$key: $value\n\r";
                }
            }

            $mailer = new Garp_Mailer();
            $mailer->send(array(
                'to' => $to,
                'subject' => $subject,
                'message' => $message
            ));
        }

        throw $e;
    }
protected function _throwException ( Exception $ e , $ method , $ args = array ( ) ) { $ this -> _logTraffic ( ) ; // Mail Amstelfilm about this error $ ini = Zend_Registry :: get ( 'config' ) ; if ( ! empty ( $ ini -> gofilex -> errorReportEmailAddress ) ) { $ to = $ ini -> gofilex -> errorReportEmailAddress ; $ subject = 'Gofilex error report' ; $ message = "Hallo,\n\r\n\r" . "Er is een Gofilex fout opgetreden. Hier vindt u de details:\n\r\n\r" . "Fout: " . $ e -> getMessage ( ) . "\n\r" . "Gofilex API functie: $method\n\r" . "Parameters:\n" ; foreach ( $ args as $ key => $ value ) { $ message .= "$key: $value\n\r" ; } // Especially interesting is the submitted POST data, since here // user-submitted movie data will reside $ message .= "\n\rPOST data (ingevuld in het formulier):\n\r" ; if ( empty ( $ _POST ) ) { $ message .= "-\n\r" ; } else { foreach ( $ _POST as $ key => $ value ) { $ message .= "$key: $value\n\r" ; } } $ mailer = new Garp_Mailer ( ) ; $ mailer -> send ( array ( 'to' => $ to , 'subject' => $ subject , 'message' => $ message ) ) ; } throw $ e ; }
Throw exception and do some logging.
@param Exception $e
@param String $method
@param Array $args
@return Void
Throw exception and do some logging .