wabbajack/Wabbajack.Lib/Exceptions/HttpException.cs

18 lines
363 B
C#
Raw Normal View History

2020-01-07 13:50:11 +00:00
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;
}
}
}