mirror of
https://github.com/Tribufu/ServerManagers
synced 2026-08-07 11:49:03 +00:00
WebApi Changes
This commit is contained in:
parent
d217c08ab0
commit
33af7cf391
17 changed files with 319 additions and 309 deletions
|
|
@ -2,30 +2,29 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace ServerManager.WebApplication.Models
|
||||
namespace ServerManager.WebApplication.Models;
|
||||
|
||||
public class ServerManagerApiException : Exception
|
||||
{
|
||||
public class ServerManagerApiException : Exception
|
||||
public ServerManagerApiException() : base()
|
||||
{ }
|
||||
|
||||
public ServerManagerApiException(int statusCode, ICollection<string> messages) : base()
|
||||
{
|
||||
public ServerManagerApiException() : base()
|
||||
{ }
|
||||
|
||||
public ServerManagerApiException(int statusCode, ICollection<string> messages) : base()
|
||||
{
|
||||
StatusCode = statusCode;
|
||||
Messages = messages;
|
||||
}
|
||||
|
||||
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 ICollection<string> Messages { get; private set; } = new List<string>();
|
||||
StatusCode = statusCode;
|
||||
Messages = messages;
|
||||
}
|
||||
|
||||
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 ICollection<string> Messages { get; private set; } = new List<string>();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue