Generalize HTTP exceptions

This commit is contained in:
Alexey Golub
2017-09-29 20:24:02 +03:00
parent d3b311b88f
commit 5a57b4a6b1
5 changed files with 26 additions and 17 deletions

View File

@@ -0,0 +1,15 @@
using System;
using System.Net;
namespace DiscordChatExporter.Exceptions
{
public class HttpErrorStatusCodeException : Exception
{
public HttpStatusCode StatusCode { get; }
public HttpErrorStatusCodeException(HttpStatusCode statusCode)
{
StatusCode = statusCode;
}
}
}

View File

@@ -1,8 +0,0 @@
using System;
namespace DiscordChatExporter.Exceptions
{
public class UnathorizedException : Exception
{
}
}