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

Removed deprecated exceptions, fixed #90

This commit is contained in:
zYne 2006-09-20 21:12:43 +00:00
parent ebad53b79d
commit 92d4bb2286
4 changed files with 0 additions and 45 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}