public function __construct(Controller $aCauseController, $sMessage = null, $aArgvs = array()) { $this->aCaseController = $aCauseController; if (!$sMessage) { $sMessage = "访问权限被拒绝"; } parent::__construct($sMessage, $aArgvs); }
public function __construct(ParseState $aParseState, $sMessage, $argvs = null) { $argvs = Type::toArray($argvs, Type::toArray_emptyForNull); $sMessage .= "\r\n遇到问题的地方:%s"; $argvs[] = implode(' ', array_slice($aParseState->arrTokenList, key($aParseState->arrTokenList), 30)); $sMessage .= "\r\n完整的SQL:%s"; $argvs[] = implode(' ', $aParseState->arrTokenList); parent::__construct($sMessage, $argvs); }
public function __construct(DB $aDB, $sSql, $nDeviceErrorNo, $sDeviceErrorMsg, \Exception $aCause = null) { $this->aDevice = $aDB; $this->sSql = $sSql; $this->nDeviceErrorNo = $nDeviceErrorNo; $this->sDeviceErrorMsg = $sDeviceErrorMsg; $sMessage = "数据库在执行SQL语句时发生了错误(code %d): \r\n"; $sMessage .= "\t%s ;\r\n"; $sMessage .= "正在执行的 SQL 是: \r\n"; $sMessage .= "\t%s"; $Argvs = array($nDeviceErrorNo, $sDeviceErrorMsg, $sSql); parent::__construct($sMessage, $Argvs, $aCause); }
public function __construct(File $aClassSouce = null, Token $aCauseToken, $sMessage, $messageArgvs = array(), \Exception $aCause = null) { $this->aClassSouce = $aClassSouce; $this->aCauseToken = $aCauseToken; parent::__construct($sMessage, $messageArgvs, $aCause); }
public function __construct(&$arrTokenTree, &$token, $sMessage, $argvs = null) { $argvs = Type::toArray($argvs, Type::toArray_emptyForNull); $sMessage .= "\r\n 正在处理的Sql Raw:" . var_export($arrTokenTree, true); parent::__construct($sMessage, $argvs); }
/** * Enter description here ... * * @return void */ public function __construct($sMessage, $Argvs = array(), \Exception $aCause = null, $nCode = 0) { $this->arrArgvs = \org\jecat\framework\lang\Type::toArray($Argvs); $this->sMessage = $sMessage; parent::__construct($this->message(), $nCode, $aCause); }