Example #1
0
 /**
  * @param \Exception $Exception
  * @param string $exceptionTextPrefix
  */
 public function addErrorException(\Exception $Exception, $exceptionTextPrefix = '')
 {
     if ($Exception instanceof AError) {
         $this->addError($exceptionTextPrefix . $Exception->getMessage(), $Exception->getFullCode());
     } elseif ($Exception instanceof \Exception) {
         $this->addError($exceptionTextPrefix . $Exception->getMessage(), $Exception->getCode());
     }
 }