* @version $Id$ * @package System.Data.ActiveRecord.Exceptions */ /** * Base exception class for Active Records. * * @author Wei Zhuo * @version $Id$ * @package System.Data.ActiveRecord.Exceptions * @since 3.1 */ class TActiveRecordException extends TException { /** * @return string path to the error message file */ protected function getErrorMessageFile() { $lang=Prado::getPreferredLanguage(); $path = dirname(__FILE__); $msgFile=$path.'/messages-'.$lang.'.txt'; if(!is_file($msgFile)) $msgFile=$path.'/messages.txt'; return $msgFile; } } class TActiveRecordConfigurationException extends TActiveRecordException { } ?>