Ejemplo n.º 1
0
 /**
  * Fügt eine schöne Exception als Fehler hinzu
  */
 public function addEx(\Psc\Exception $e)
 {
     if (isset($e->errorMessage)) {
         $msg = $e->errorMessage;
     } else {
         $msg = $e->getMessage();
     }
     if (isset($e->errorStatus)) {
         $errorStatus = $e->errorStatus;
     } else {
         $errorStatus = self::ERROR;
     }
     $devInfo = NULL;
     if (PSC::getProject()->isDevelopment()) {
         $devInfo = \Psc\Exception::getExceptionText($e, 'html');
     }
     return $this->add($msg, $errorStatus, $devInfo);
 }