handleError() публичный Метод

Handles errors/warnings/notices
public handleError ( integer $errorCode, string $errorMessage, string $errorFile, integer $errorLine, Phalcon\Mvc\Application $application = null )
$errorCode integer
$errorMessage string
$errorFile string
$errorLine integer
$application Phalcon\Mvc\Application OPTIONAL To display a dump of the current state of the Phalcon application instance.
 /**
  * @param      $exceptionOrCode
  * @param null $message
  * @param null $file
  * @param null $line
  *
  * @return bool
  */
 protected function getTemplate($exceptionOrCode, $message = NULL, $file = NULL, $line = NULL)
 {
     if ($exceptionOrCode instanceof \Exception) {
         $message = $exceptionOrCode->getMessage();
         $file = $exceptionOrCode->getFile();
         $line = $exceptionOrCode->getLine();
     }
     $prettyPrinter = new PrettyExceptions();
     $prettyPrinter->showFiles(TRUE);
     $prettyPrinter->showFileFragment(TRUE);
     $prettyPrinter->setTheme('night');
     ob_start();
     ob_start();
     $prettyPrinter->handleError(-1, $message, $file, $line);
     return $this->handleTemplate();
 }