Removed deprecated exceptions, fixed #90
This commit is contained in:
parent
ebad53b79d
commit
92d4bb2286
@ -1,11 +0,0 @@
|
||||
<?php
|
||||
Doctrine::autoload("Doctrine_Exception");
|
||||
/**
|
||||
* thrown when user tries to find a Doctrine_Record for given primary key and that object is not found
|
||||
*/
|
||||
class Doctrine_Find_Exception extends Doctrine_Exception {
|
||||
public function __construct() {
|
||||
parent::__construct("Couldn't find Data Access Object.",Doctrine::ERR_FIND);
|
||||
}
|
||||
}
|
||||
|
@ -1,11 +0,0 @@
|
||||
<?php
|
||||
Doctrine::autoload("Doctrine_Exception");
|
||||
/**
|
||||
* thrown when user tries to get a foreign key object but the mapping is not done right
|
||||
*/
|
||||
class Doctrine_Mapping_Exception extends Doctrine_Exception {
|
||||
public function __construct($message = "An error occured in the mapping logic.") {
|
||||
parent::__construct($message,Doctrine::ERR_MAPPING);
|
||||
}
|
||||
}
|
||||
|
@ -1,12 +0,0 @@
|
||||
<?php
|
||||
Doctrine::autoload('Doctrine_Exception');
|
||||
/**
|
||||
* thrown when user defined Doctrine_Table is badly named
|
||||
*/
|
||||
class Doctrine_Naming_Exception extends Doctrine_Exception {
|
||||
public function __construct() {
|
||||
parent::__construct("Badly named Doctrine_Table. Each Doctrine_Table
|
||||
must be in format [Name]Table.", Doctrine::ERR_NAMING);
|
||||
}
|
||||
}
|
||||
|
@ -1,11 +0,0 @@
|
||||
<?php
|
||||
Doctrine::autoload("Doctrine_Exception");
|
||||
/**
|
||||
* thrown when Doctrine_Record is loaded and there is no primary key field
|
||||
*/
|
||||
class Doctrine_PrimaryKey_Exception extends Doctrine_Exception {
|
||||
public function __construct() {
|
||||
parent::__construct("No primary key column found. Each data set must have primary key column.", Doctrine::ERR_NO_PK);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user