mirror of
https://github.com/Tribufu/ServerManagers
synced 2026-08-07 11:49:03 +00:00
- updated all nugets to latest 8.x versions - linting fixes - switched the application insights to use the connection string.
27 lines
No EOL
714 B
C#
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>();
|
|
} |