1
0
mirror of synced 2024-12-13 06:46:03 +03:00

Fixed to prevent custom message from being overidden by default

This commit is contained in:
amadeus 2006-09-05 20:53:44 +00:00
parent 12a21ba50e
commit 946e3f1c5d

View File

@ -1,14 +1,14 @@
<?php
Doctrine::autoload('Doctrine_Exception');
/**
* thrown when user tries to initialize a new instance of Doctrine_Table,
* thrown when user tries to initialize a new instance of Doctrine_Table,
* while there already exists an instance of that table
*/
class Doctrine_Table_Exception extends Doctrine_Exception {
public function __construct() {
parent::__construct("Couldn't initialize table. One instance of this
public function __construct($message = "Couldn't initialize table. One instance of this
table already exists. Always use Doctrine_Session::getTable(\$name)
to get on instance of a Doctrine_Table.",Doctrine::ERR_TABLE_INSTANCE);
to get on instance of a Doctrine_Table.") {
parent::__construct($message,Doctrine::ERR_TABLE_INSTANCE);
}
}