ServerManagers/src/ServerManager.WebApplication/Models/ServerManagerApiException.cs
Brett Hewitson f5a96f965a Dotnet 8.x Update
- updated all nugets to latest 8.x versions
- linting fixes
- switched the application insights to use the connection string.
2025-03-21 06:46:38 +10:00

27 lines
No EOL
714 B
C#

using System;
using System.Collections.Generic;
namespace ServerManager.WebApplication.Models;
public class ServerManagerApiException : Exception
{
public ServerManagerApiException()
{ }
public ServerManagerApiException(int statusCode, ICollection<string> messages)
{
StatusCode = statusCode;
Messages = messages;
}
public ServerManagerApiException(int statusCode, ICollection<string> messages, Exception innerException)
: base(null, innerException)
{
StatusCode = statusCode;
Messages = messages;
}
public int StatusCode { get; private set; }
public ICollection<string> Messages { get; private set; } = new List<string>();
}