| @@ -29,8 +29,7 @@ | ||
| 29 | 29 | try | 
| 30 | 30 |          { | 
| 31 | 31 | $query->execute(); | 
| 32 | - } | |
| 33 | - catch(PDOException $e) | |
| 32 | + } catch(PDOException $e) | |
| 34 | 33 |          { | 
| 35 | 34 |              throw new Exception("Error en la consulta"); | 
| 36 | 35 | } | 
| @@ -29,8 +29,7 @@ | ||
| 29 | 29 | try | 
| 30 | 30 |          { | 
| 31 | 31 | $query->execute(); | 
| 32 | - } | |
| 33 | - catch(PDOException $e) | |
| 32 | + } catch(PDOException $e) | |
| 34 | 33 |          { | 
| 35 | 34 |              throw new Exception("Error en la consulta"); | 
| 36 | 35 | } | 
| @@ -21,8 +21,7 @@ | ||
| 21 | 21 |  		{ | 
| 22 | 22 |  			$this->_pdo = new PDO('mysql:host='.$HostBaseDeDatos->hostBaseDeDatos().';dbname='.$BaseDeDatos->baseDeDatos().';chartset=utf8mb4',$UsuarioBaseDeDatos->usuarioBaseDeDatos(),$ContrasenaBaseDeDatos->contrasenaBaseDeDatos()); | 
| 23 | 23 | $this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | 
| 24 | - } | |
| 25 | - catch(PDOException) | |
| 24 | + } catch(PDOException) | |
| 26 | 25 |  		{ | 
| 27 | 26 |  			throw new ConexionABaseDeDatosException("Error al conectar con base de datos"); | 
| 28 | 27 | } |