From 9b2490fea5ae7cfb9f2790f3107dbb8f9b5b8858 Mon Sep 17 00:00:00 2001 From: Still Hsu <341464@gmail.com> Date: Sun, 28 Oct 2018 00:09:56 +0800 Subject: [PATCH] Remove RpcException --- src/Discord.Net.Core/Net/RpcException.cs | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 src/Discord.Net.Core/Net/RpcException.cs diff --git a/src/Discord.Net.Core/Net/RpcException.cs b/src/Discord.Net.Core/Net/RpcException.cs deleted file mode 100644 index 195fad73f..000000000 --- a/src/Discord.Net.Core/Net/RpcException.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; - -namespace Discord -{ - public class RpcException : Exception - { - public int ErrorCode { get; } - public string Reason { get; } - - public RpcException(int errorCode, string reason = null) - : base($"The server sent error {errorCode}{(reason != null ? $": \"{reason}\"" : "")}") - { - ErrorCode = errorCode; - Reason = reason; - } - } -}