namespace AyCode.Services.Nav; /// /// NAV adatszolgáltatás hibája — HTTP-szintű hiba, vagy a válasz funcCode != OK eredménye. /// public class NavReportException : Exception { /// A NAV válasz funkciókódja (OK/WARNING/ERROR), ha értelmezhető volt. public string? FuncCode { get; } /// A NAV válasz reasonCode-ja, ha volt. public string? ReasonCode { get; } /// A HTTP státuszkód, ha a hiba transport-szintű volt. public int? HttpStatusCode { get; } public NavReportException( string message, string? funcCode = null, string? reasonCode = null, int? httpStatusCode = null, Exception? innerException = null) : base(message, innerException) { FuncCode = funcCode; ReasonCode = reasonCode; HttpStatusCode = httpStatusCode; } }