Initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
namespace RobotNet10.NavigationTuneUI.Helpers;
|
||||
|
||||
/// <summary>
|
||||
/// Custom exception for API errors with meaningful messages
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user