Skip to content

Commit

Permalink
Remove call to obsolete base constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahStolk committed Jan 10, 2024
1 parent 29351bc commit e10e35b
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 86 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using DevilDaggersInfo.Web.Server.Domain.Exceptions;
using System.Net;
using System.Runtime.Serialization;

namespace DevilDaggersInfo.Web.Server.Domain.Admin.Exceptions;

[Serializable]
public class AdminDomainException : StatusCodeException
{
public AdminDomainException()
Expand All @@ -21,10 +19,5 @@ public AdminDomainException(string? message, Exception? innerException)
{
}

protected AdminDomainException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}

public override HttpStatusCode StatusCode => HttpStatusCode.BadRequest;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System.Net;
using System.Runtime.Serialization;

namespace DevilDaggersInfo.Web.Server.Domain.Exceptions;

[Serializable]
public class BadRequestException : StatusCodeException
{
public BadRequestException()
Expand All @@ -20,10 +18,5 @@ public BadRequestException(string? message, Exception? innerException)
{
}

protected BadRequestException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}

public override HttpStatusCode StatusCode => HttpStatusCode.BadRequest;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System.Net;
using System.Runtime.Serialization;

namespace DevilDaggersInfo.Web.Server.Domain.Exceptions;

[Serializable]
public class CustomEntryValidationException : StatusCodeException
{
public CustomEntryValidationException()
Expand All @@ -20,10 +18,5 @@ public CustomEntryValidationException(string? message, Exception? innerException
{
}

protected CustomEntryValidationException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}

public override HttpStatusCode StatusCode => HttpStatusCode.BadRequest;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System.Net;
using System.Runtime.Serialization;

namespace DevilDaggersInfo.Web.Server.Domain.Exceptions;

[Serializable]
public class CustomLeaderboardValidationException : StatusCodeException
{
public CustomLeaderboardValidationException()
Expand All @@ -20,10 +18,5 @@ public CustomLeaderboardValidationException(string? message, Exception? innerExc
{
}

protected CustomLeaderboardValidationException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}

public override HttpStatusCode StatusCode => HttpStatusCode.BadRequest;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System.Net;
using System.Runtime.Serialization;

namespace DevilDaggersInfo.Web.Server.Domain.Exceptions;

[Serializable]
public class DdLeaderboardException : StatusCodeException
{
public DdLeaderboardException()
Expand All @@ -20,10 +18,5 @@ public DdLeaderboardException(string? message, Exception? innerException)
{
}

protected DdLeaderboardException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}

public override HttpStatusCode StatusCode => HttpStatusCode.BadRequest;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System.Net;
using System.Runtime.Serialization;

namespace DevilDaggersInfo.Web.Server.Domain.Exceptions;

[Serializable]
public class ForbiddenException : StatusCodeException
{
public ForbiddenException()
Expand All @@ -20,10 +18,5 @@ public ForbiddenException(string? message, Exception? innerException)
{
}

protected ForbiddenException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}

public override HttpStatusCode StatusCode => HttpStatusCode.Forbidden;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System.Net;
using System.Runtime.Serialization;

namespace DevilDaggersInfo.Web.Server.Domain.Exceptions;

[Serializable]
public class InvalidModArchiveException : StatusCodeException
{
public InvalidModArchiveException()
Expand All @@ -20,10 +18,5 @@ public InvalidModArchiveException(string? message, Exception? innerException)
{
}

protected InvalidModArchiveException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}

public override HttpStatusCode StatusCode => HttpStatusCode.BadRequest;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System.Net;
using System.Runtime.Serialization;

namespace DevilDaggersInfo.Web.Server.Domain.Exceptions;

[Serializable]
public class InvalidProfileRequestException : StatusCodeException
{
public InvalidProfileRequestException()
Expand All @@ -20,10 +18,5 @@ public InvalidProfileRequestException(string? message, Exception? innerException
{
}

protected InvalidProfileRequestException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}

public override HttpStatusCode StatusCode => HttpStatusCode.BadRequest;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System.Net;
using System.Runtime.Serialization;

namespace DevilDaggersInfo.Web.Server.Domain.Exceptions;

[Serializable]
public class NotFoundException : StatusCodeException
{
public NotFoundException()
Expand All @@ -20,10 +18,5 @@ public NotFoundException(string? message, Exception? innerException)
{
}

protected NotFoundException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}

public override HttpStatusCode StatusCode => HttpStatusCode.NotFound;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System.Net;
using System.Runtime.Serialization;

namespace DevilDaggersInfo.Web.Server.Domain.Exceptions;

[Serializable]
public abstract class StatusCodeException : Exception
{
protected StatusCodeException()
Expand All @@ -20,10 +18,5 @@ protected StatusCodeException(string? message, Exception? innerException)
{
}

protected StatusCodeException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}

public abstract HttpStatusCode StatusCode { get; }
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System.Net;
using System.Runtime.Serialization;

namespace DevilDaggersInfo.Web.Server.Domain.Exceptions;

[Serializable]
public class UnauthorizedException : StatusCodeException
{
public UnauthorizedException()
Expand All @@ -20,10 +18,5 @@ public UnauthorizedException(string? message, Exception? innerException)
{
}

protected UnauthorizedException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}

public override HttpStatusCode StatusCode => HttpStatusCode.Unauthorized;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System.Net;
using System.Runtime.Serialization;

namespace DevilDaggersInfo.Web.Server.Domain.Exceptions;

[Serializable]
public class UnsupportedOperatingSystemException : StatusCodeException
{
public UnsupportedOperatingSystemException()
Expand All @@ -20,10 +18,5 @@ public UnsupportedOperatingSystemException(string? message, Exception? innerExce
{
}

protected UnsupportedOperatingSystemException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}

public override HttpStatusCode StatusCode => HttpStatusCode.BadRequest;
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
using DevilDaggersInfo.Web.Server.Domain.Entities;
using DevilDaggersInfo.Web.Server.Domain.Entities.Enums;
using DevilDaggersInfo.Web.Server.Domain.Exceptions;
using DevilDaggersInfo.Web.Server.Domain.Models.FileSystem;
using DevilDaggersInfo.Web.Server.Domain.Models.Tools;
using DevilDaggersInfo.Web.Server.Domain.Services.Inversion;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;

namespace DevilDaggersInfo.Web.Server.Domain.Repositories;

Expand Down

0 comments on commit e10e35b

Please sign in to comment.