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_Exception_TypeMismatch extends FLEA_Exception 00028 { 00029 var $arg; 00030 var $expected; 00031 var $actual; 00032 00042 function FLEA_Exception_TypeMismatch($arg, $expected, $actual) 00043 { 00044 $this->arg = $arg; 00045 $this->expected = $expected; 00046 $this->actual = $actual; 00047 $code = 0x010200c; 00048 $msg = sprintf(_ET($code), $arg, $expected, $actual); 00049 parent::FLEA_Exception($msg, $code); 00050 } 00051 }
1.5.3