1
0
mirror of synced 2025-02-20 14:13:15 +03:00

Added a folder remotely

This commit is contained in:
doctrine 2006-05-30 08:59:33 +00:00
parent 043c7e6493
commit 19ac1e7961
4 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<?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

@ -0,0 +1,11 @@
<?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

@ -0,0 +1,12 @@
<?php
require_once(Doctrine::getPath().DIRECTORY_SEPARATOR."Exception.php");
/**
* 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

@ -0,0 +1,11 @@
<?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);
}
}
?>