Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/**
3
 * TActiveRecordException class file.
4
 *
5
 * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
6
 * @link http://www.pradosoft.com/
7
 * @copyright Copyright &copy; 2005-2008 PradoSoft
8
 * @license http://www.pradosoft.com/license/
9
 * @version $Id: TActiveRecordException.php 2541 2008-10-21 15:05:13Z qiang.xue $
10
 * @package System.Data.ActiveRecord
11
 */
12
 
13
/**
14
 * Base exception class for Active Records.
15
 *
16
 * @author Wei Zhuo <weizho[at]gmail[dot]com>
17
 * @version $Id: TActiveRecordException.php 2541 2008-10-21 15:05:13Z qiang.xue $
18
 * @package System.Data.ActiveRecord
19
 * @since 3.1
20
 */
21
class TActiveRecordException extends TDbException
22
{
23
	/**
24
	 * @return string path to the error message file
25
	 */
26
	protected function getErrorMessageFile()
27
	{
28
		$lang=Prado::getPreferredLanguage();
29
		$path = dirname(__FILE__);
30
		$msgFile=$path.'/messages-'.$lang.'.txt';
31
		if(!is_file($msgFile))
32
			$msgFile=$path.'/messages.txt';
33
		return $msgFile;
34
	}
35
}
36
 
37
class TActiveRecordConfigurationException extends TActiveRecordException
38
{
39
 
40
}
41