namespace RobotNet10.NavigationTuneUI.Helpers; /// /// Custom exception for API errors with meaningful messages /// public class ApiException : Exception { public int? StatusCode { get; } public ApiException(string message, int? statusCode = null) : base(message) { StatusCode = statusCode; } public ApiException(string message, Exception innerException, int? statusCode = null) : base(message, innerException) { StatusCode = statusCode; } }