2006-05-30 09:04:54 +00:00
|
|
|
<?php
|
2006-05-30 18:43:36 +00:00
|
|
|
Doctrine::autoload('Doctrine_Exception');
|
2006-05-30 09:04:54 +00:00
|
|
|
/**
|
2006-09-05 20:53:44 +00:00
|
|
|
* thrown when user tries to initialize a new instance of Doctrine_Table,
|
2006-05-30 09:04:54 +00:00
|
|
|
* while there already exists an instance of that table
|
|
|
|
*/
|
|
|
|
class Doctrine_Table_Exception extends Doctrine_Exception {
|
2006-09-05 20:53:44 +00:00
|
|
|
public function __construct($message = "Couldn't initialize table. One instance of this
|
2006-09-03 19:20:02 +00:00
|
|
|
table already exists. Always use Doctrine_Session::getTable(\$name)
|
2006-09-05 20:53:44 +00:00
|
|
|
to get on instance of a Doctrine_Table.") {
|
|
|
|
parent::__construct($message,Doctrine::ERR_TABLE_INSTANCE);
|
2006-05-30 09:04:54 +00:00
|
|
|
}
|
|
|
|
}
|
2006-09-03 22:46:30 +00:00
|
|
|
|