Browse Source

Remove RpcException

pull/1185/head
Still Hsu 6 years ago
parent
commit
9b2490fea5
No known key found for this signature in database GPG Key ID: 8601A145FDA95209
1 changed files with 0 additions and 17 deletions
  1. +0
    -17
      src/Discord.Net.Core/Net/RpcException.cs

+ 0
- 17
src/Discord.Net.Core/Net/RpcException.cs View File

@@ -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;
}
}
}

Loading…
Cancel
Save