-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
23 additions
and
38 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,12 @@ | ||
using System; | ||
using System.Net; | ||
|
||
namespace Vulder.SharedKernel.Exceptions; | ||
|
||
public class AuthException : Exception | ||
public class AuthException : VulderBaseException | ||
{ | ||
public AuthException() : base() | ||
{ | ||
} | ||
|
||
public AuthException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public AuthException(string message, Exception innerException) : base(message, innerException) | ||
public override HttpStatusCode StatusCode => HttpStatusCode.Unauthorized; | ||
|
||
public AuthException(string message = "Unable to authorize user") : base(message) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
using System.Net; | ||
|
||
namespace Vulder.SharedKernel.Exceptions; | ||
|
||
public abstract class VulderBaseException : Exception | ||
{ | ||
public abstract HttpStatusCode StatusCode { get; } | ||
|
||
protected VulderBaseException(string message) : base(message) | ||
{ | ||
} | ||
} |
Empty file modified
0
src/Vulder.SharedKernel/Middlewares/ControllerActionLoggingMiddleware.cs
100755 → 100644
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters