Example #1
0
function exception_handler(Exception $exception) {
    $div = Html::startTag('div', array('id' => 'exceptionBox'));
    $div .= Html::startTag('p', array('class' => 'h3')) . TMS(BaseException::HEADLINE) . Html::endTag('p');
    $div .= Html::startTag('hr');
    $div .= $exception->getMessage();
    $div .= Html::endTag('div');
    print($div);
    if ($exception instanceof BaseException) {
        $exception->debugOut();
    }
}
Example #2
0
 protected function _castExceptionAndWriteToLog(Exception $oEx)
 {
     if (!$oEx instanceof oxException) {
         $oOxException = oxNew("oxException");
         $oOxException->setMessage($oEx->getMessage());
         $oOxException->debugOut();
     } else {
         $oEx->debugOut();
     }
 }