Initial .net 6 upgrades

This commit is contained in:
RaidMax
2022-01-26 10:32:16 -06:00
parent e4cb3abb20
commit a602e8caed
170 changed files with 2805 additions and 2577 deletions

View File

@ -1,11 +1,11 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace SharedLibraryCore.Exceptions
{
public class AuthorizationException : Exception
{
public AuthorizationException(string message) : base (message) { }
public AuthorizationException(string message) : base(message)
{
}
}
}
}

View File

@ -1,15 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SharedLibraryCore.Exceptions
namespace SharedLibraryCore.Exceptions
{
public class CommandException : ServerException
{
public CommandException(string msg) : base(msg) { }
public CommandException(string msg) : base(msg)
{
}
// .data contains
// "command_name"
}
}
}

View File

@ -4,9 +4,11 @@ namespace SharedLibraryCore.Exceptions
{
public class ConfigurationException : Exception
{
public ConfigurationException(string message) : base(message)
{
}
public string[] Errors { get; set; }
public string ConfigurationFileName { get; set; }
public ConfigurationException(string message) : base(message) { }
}
}
}

View File

@ -1,13 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SharedLibraryCore.Exceptions
{
public class DatabaseException : Exception
{
public DatabaseException(string msg) : base(msg) { }
public DatabaseException(string msg) : base(msg)
{
}
}
}
}

View File

@ -1,13 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SharedLibraryCore.Exceptions
namespace SharedLibraryCore.Exceptions
{
public class DvarException : ServerException
{
public DvarException(string msg) : base(msg) { }
public DvarException(string msg) : base(msg)
{
}
}
}
}

View File

@ -1,18 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
using System.Net.Sockets;
namespace SharedLibraryCore.Exceptions
{
public class NetworkException : ServerException
{
public NetworkException(string msg) : base(msg) { }
public NetworkException(string msg) : base(msg)
{
}
public NetworkException(string msg, Socket s) : base(msg)
{
this.Data.Add("socket", s);
Data.Add("socket", s);
}
}
}
}

View File

@ -4,8 +4,10 @@ namespace SharedLibraryCore.Exceptions
{
public class PluginException : Exception
{
public PluginException(string message) : base(message) { }
public PluginException(string message) : base(message)
{
}
public string PluginFile { get; set; }
}
}
}

View File

@ -1,13 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SharedLibraryCore.Exceptions
{
public class SerializeException : Exception
{
public SerializeException(string msg) : base(msg) { }
public SerializeException(string msg) : base(msg)
{
}
}
}
}

View File

@ -1,13 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SharedLibraryCore.Exceptions
{
public class ServerException : Exception
{
public ServerException(string msg) : base(msg) { }
public ServerException(string msg) : base(msg)
{
}
}
}
}