コード例 #1
0
ファイル: Documented.php プロジェクト: TheProjecter/sylma
 protected function catchException(core\exception $e, fs\file $file = null)
 {
     if ($this->useLog()) {
         $this->getLogger()->addException($e->getMessage());
     }
     if ($file) {
         $e->addPath($file->asToken());
     } else {
         $e->addPath('No file defined');
     }
     if ($this->throwExceptions()) {
         throw $e;
     } else {
         $e->save(false);
     }
 }
コード例 #2
0
ファイル: Element.php プロジェクト: TheProjecter/sylma
 protected function catchError(core\exception $e, $sQuery, array $aNS)
 {
     $this->throwException(sprintf('XPath error with "%s" : %s', $sQuery, $e->getMessage()), $this->nsAsToken($aNS));
 }