wabbajack/Wabbajack.Lib/Exceptions/HttpException.cs
2020-01-07 06:50:11 -07:00

18 lines
363 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;
}
}
}