Files
git.stella-ops.org/src/Cli/StellaOps.Cli/Services/PolicyApiException.cs
2025-10-28 15:10:40 +02:00

19 lines
471 B
C#

using System;
using System.Net;
namespace StellaOps.Cli.Services;
internal sealed class PolicyApiException : Exception
{
public PolicyApiException(string message, HttpStatusCode statusCode, string? errorCode, Exception? innerException = null)
: base(message, innerException)
{
StatusCode = statusCode;
ErrorCode = errorCode;
}
public HttpStatusCode StatusCode { get; }
public string? ErrorCode { get; }
}