コード例 #1
0
 public function __construct($message, $mysqlErrCode = 0, $sqlState = 0)
 {
     parent::__construct($message, null, $mysqlErrCode);
     $this->sqlState = $sqlState;
 }
コード例 #2
0
ファイル: Exception.php プロジェクト: netconstructor/LampCMS
 /**
  * Constructor
  * @param string $sMessage error message
  * @param array $aFormFields regular array with names of form fields
  * that caused validation error
  *
  * @param array $aArgs additional optional array of args for
  * vsprintf. This is in case we need to translate the error message
  * and then apply the replacement vars.
  */
 public function __construct($sMessage, $formFields = null, array $aArgs = null)
 {
     parent::__construct($sMessage, $aArgs);
     if (is_string($formFields)) {
         $formFields = array($formFields);
     }
     $this->aFields = $formFields;
 }