Branch for IW4X practically everything refactored
This commit is contained in:
15
SharedLibrary/Exceptions/CommandException.cs
Normal file
15
SharedLibrary/Exceptions/CommandException.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SharedLibrary.Exceptions
|
||||
{
|
||||
public class CommandException : ServerException
|
||||
{
|
||||
public CommandException(string msg) : base(msg) { }
|
||||
// .data contains
|
||||
// "command_name"
|
||||
}
|
||||
}
|
13
SharedLibrary/Exceptions/DvarException.cs
Normal file
13
SharedLibrary/Exceptions/DvarException.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SharedLibrary.Exceptions
|
||||
{
|
||||
public class DvarException : ServerException
|
||||
{
|
||||
public DvarException(string msg) : base(msg) { }
|
||||
}
|
||||
}
|
13
SharedLibrary/Exceptions/NetworkException.cs
Normal file
13
SharedLibrary/Exceptions/NetworkException.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SharedLibrary.Exceptions
|
||||
{
|
||||
public class NetworkException : ServerException
|
||||
{
|
||||
public NetworkException(string msg) : base(msg) { }
|
||||
}
|
||||
}
|
13
SharedLibrary/Exceptions/ServerException.cs
Normal file
13
SharedLibrary/Exceptions/ServerException.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SharedLibrary.Exceptions
|
||||
{
|
||||
public class ServerException : Exception
|
||||
{
|
||||
public ServerException(string msg) : base(msg) { }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user