00001 <?php 00003 // FleaPHP Framework 00004 // 00005 // Copyright (c) 2005 - 2008 QeeYuan China Inc. (http://www.qeeyuan.com) 00006 // 00007 // 许可协议,请查看源代码中附带的 LICENSE.txt 文件, 00008 // 或者访问 http://www.fleaphp.org/ 获得详细信息。 00010 00027 class FLEA_Db_Exception_PrimaryKeyExists extends FLEA_Exception 00028 { 00034 var $primaryKey; 00035 00041 var $pkValue; 00042 00051 function FLEA_Db_Exception_PrimaryKeyExists($pk, $pkValue = null) 00052 { 00053 $this->primaryKey = $pk; 00054 $this->pkValue = $pkValue; 00055 $code = 0x06ff004; 00056 $msg = sprintf(_ET($code), $pk, $pkValue); 00057 parent::FLEA_Exception($msg, $code); 00058 } 00059 }
1.5.3