Cleaned references and imports
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml;
|
||||
|
||||
namespace PWAPPv2.Source.Database
|
||||
@@ -22,12 +18,12 @@ namespace PWAPPv2.Source.Database
|
||||
{
|
||||
cfg.Load(path);
|
||||
}
|
||||
catch(XmlException)
|
||||
catch (XmlException)
|
||||
{
|
||||
Console.WriteLine("An error has occured parsing the config file.");
|
||||
return;
|
||||
}
|
||||
catch(System.IO.FileNotFoundException)
|
||||
catch (System.IO.FileNotFoundException)
|
||||
{
|
||||
Console.WriteLine("Config file could not be found!");
|
||||
}
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
using System;
|
||||
using MySqlConnector;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Data.SqlClient;
|
||||
using MySqlConnector;
|
||||
|
||||
namespace PWAPPv2.Source.Database
|
||||
{
|
||||
@@ -28,7 +24,7 @@ namespace PWAPPv2.Source.Database
|
||||
{
|
||||
Connection.Open();
|
||||
}
|
||||
catch(Exception)
|
||||
catch (Exception)
|
||||
{
|
||||
throw new DatabaseConnectionException();
|
||||
}
|
||||
@@ -99,7 +95,7 @@ namespace PWAPPv2.Source.Database
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
class DatabaseConnectionException : Exception
|
||||
{ }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user