PDO Mysqli Manejo de errores

  $errors = $stmt->errorInfo();
    echo($errors[2]);
adeleyeayodeji