]> git.deb.at Git - rhonda/impostor.git/commitdiff
Remove AmongUsException
authorAeonLucid <aeonlucid@gmail.com>
Mon, 19 Oct 2020 10:16:36 +0000 (12:16 +0200)
committerAeonLucid <aeonlucid@gmail.com>
Mon, 19 Oct 2020 10:16:36 +0000 (12:16 +0200)
src/Impostor.Server/Exceptions/AmongUsException.cs [deleted file]
src/Impostor.Server/Net/State/Game.State.cs

diff --git a/src/Impostor.Server/Exceptions/AmongUsException.cs b/src/Impostor.Server/Exceptions/AmongUsException.cs
deleted file mode 100644 (file)
index d6ace6c..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-using System;
-using System.Runtime.Serialization;
-
-namespace Impostor.Server.Exceptions
-{
-    public class AmongUsException : Exception
-    {
-        public AmongUsException()
-        {
-        }
-
-        public AmongUsException(string message, Exception innerException)
-            : base(message, innerException)
-        {
-        }
-
-        public AmongUsException(string message)
-            : base(message)
-        {
-        }
-
-        protected AmongUsException(SerializationInfo info, StreamingContext context)
-            : base(info, context)
-        {
-        }
-    }
-}
\ No newline at end of file
index fdca5d4ea242d84e375755aec12755163b4613fe..710e62f2369d6df38db0b9e0643cd3ec7f444791 100644 (file)
@@ -1,7 +1,6 @@
 using System.Linq;
 using System.Threading.Tasks;
 using Impostor.Server.Events;
-using Impostor.Server.Exceptions;
 using Impostor.Server.Net.Messages;
 using Impostor.Shared.Innersloth.Data;
 
@@ -14,7 +13,7 @@ namespace Impostor.Server.Net.State
             // Store player.
             if (!_players.TryAdd(player.Client.Id, player))
             {
-                throw new AmongUsException("Failed to add player to game.");
+                throw new ImpostorException("Failed to add player to game.");
             }
 
             // Assign hostId if none is set.