wabbajack/Wabbajack.Lib/Exceptions/HttpException.cs
2020-04-10 13:32:35 -05:00

17 lines
362 B
C#

using System;
namespace Wabbajack.Lib.Exceptions
{
public class HttpException : Exception
{
public string Reason { get; set; }
public int Code { get; set; }
public HttpException(int code, string reason) : base($"Http Error {code} - {reason}")
{
Code = code;
Reason = reason;
}
}
}