Polish for Release (#2314)
This commit is contained in:
parent
fe4af4b648
commit
59b950c4bd
54 changed files with 1162 additions and 1056 deletions
25
Kavita.Common/KavitaUnauthenticatedUserException.cs
Normal file
25
Kavita.Common/KavitaUnauthenticatedUserException.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Kavita.Common;
|
||||
|
||||
/// <summary>
|
||||
/// The user does not exist (aka unauthorized). This will be caught by middleware and Unauthorized() returned to UI
|
||||
/// </summary>
|
||||
/// <remarks>This will always log to Security Log</remarks>
|
||||
[Serializable]
|
||||
public class KavitaUnauthenticatedUserException : Exception
|
||||
{
|
||||
public KavitaUnauthenticatedUserException()
|
||||
{ }
|
||||
|
||||
public KavitaUnauthenticatedUserException(string message) : base(message)
|
||||
{ }
|
||||
|
||||
public KavitaUnauthenticatedUserException(string message, Exception inner)
|
||||
: base(message, inner) { }
|
||||
|
||||
protected KavitaUnauthenticatedUserException(SerializationInfo info, StreamingContext context)
|
||||
: base(info, context)
|
||||
{ }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue