medoo::error PHP 메소드

error() 공개 메소드

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

Usage Example

예제 #1
0
 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