Try ConexionBD.Open() Catch ex As Exception Throw New Exception("No se ha podido conectar a la DB") End Try