medoo::error PHP Method

error() public method

public error ( )
    public function error()
    {
        return $this->pdo->errorInfo();
    }

Usage Example

コード例 #1
0
ファイル: RootClass.php プロジェクト: indiwine/EMA-engine
 protected function throwMysqlError()
 {
     $errorMsg = "MySQL error occurred. ";
     if (EMA_DEBUG === true) {
         $errorArray = $this->dbConnection->error();
         $errorMsg .= " Debug Data:  " . $errorArray[2];
     }
     throw new \Exception($errorMsg, 6022);
 }
All Usage Examples Of medoo::error