コード例 #1
0
ファイル: Exception.php プロジェクト: JimmyVB/Symfony-v1.2
 public function __construct($message = "Couldn't initialize table. One instance of this\n                            table already exists. Always use Doctrine_Session::getTable(\$name)\n                            to get on instance of a Doctrine_Table.")
 {
     parent::__construct($message);
 }
コード例 #2
0
ファイル: Exception.php プロジェクト: kirvin/the-nerdery
 /**
  * __toString
  *
  * @return string
  */
 public function __toString()
 {
     return parent::__toString();
 }
コード例 #3
0
ファイル: Exception.php プロジェクト: nationalfield/symfony
 /**
  * @param Doctrine_Validator $validator
  */
 public function __construct(array $invalid)
 {
     $this->invalid = $invalid;
     parent::__construct($this->generateMessage());
 }
コード例 #4
0
 /**
  * Notify symfony of an exception thrown by the Doctrine cli
  *
  * @param Doctrine_Exception $exception
  * @return void
  * @throws sfException
  */
 public function notifyException($exception)
 {
     throw new sfException($exception->getMessage());
 }