mirror of
https://github.com/Tribufu/ServerManagers
synced 2026-08-07 19:56:22 +00:00
Dotnet 8.x Update
- updated all nugets to latest 8.x versions - linting fixes - switched the application insights to use the connection string.
This commit is contained in:
parent
5d8fe6ca90
commit
f5a96f965a
19 changed files with 64 additions and 98 deletions
|
|
@ -1,30 +1,27 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace ServerManager.WebApplication.Models;
|
||||
|
||||
public class ServerManagerApiException : Exception
|
||||
{
|
||||
public ServerManagerApiException() : base()
|
||||
public ServerManagerApiException()
|
||||
{ }
|
||||
|
||||
public ServerManagerApiException(int statusCode, ICollection<string> messages) : base()
|
||||
public ServerManagerApiException(int statusCode, ICollection<string> messages)
|
||||
{
|
||||
StatusCode = statusCode;
|
||||
Messages = messages;
|
||||
}
|
||||
|
||||
public ServerManagerApiException(int statusCode, ICollection<string> messages, Exception innerException) : base(null, innerException)
|
||||
public ServerManagerApiException(int statusCode, ICollection<string> messages, Exception innerException)
|
||||
: base(null, innerException)
|
||||
{
|
||||
StatusCode = statusCode;
|
||||
Messages = messages;
|
||||
}
|
||||
|
||||
protected ServerManagerApiException(SerializationInfo info, StreamingContext context) : base(info, context)
|
||||
{ }
|
||||
|
||||
public int StatusCode { get; private set; } = 0;
|
||||
public int StatusCode { get; private set; }
|
||||
|
||||
public ICollection<string> Messages { get; private set; } = new List<string>();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue