outputException() 공개 메소드

Echos an error message & other information, then exits.
public outputException ( Piwik\Tracker $tracker, Exception $e, integer $statusCode )
$tracker Piwik\Tracker
$e Exception
$statusCode integer eg 500
예제 #1
0
 public function onException(Tracker $tracker, RequestSet $requestSet, Exception $e)
 {
     Common::printDebug("Exception: " . $e->getMessage());
     $statusCode = 500;
     if ($e instanceof UnexpectedWebsiteFoundException) {
         $statusCode = 400;
     } elseif ($e instanceof InvalidRequestParameterException) {
         $statusCode = 400;
     }
     $this->response->outputException($tracker, $e, $statusCode);
     $this->redirectIfNeeded($requestSet);
 }