Reduce Unauthenticated Errors in Sentry (#238)
* Updated README to be explicit that kavita.db needs to be writable. * Implemented a new Exception type that is for throwing a message to UI without logging in Sentry.
This commit is contained in:
parent
0a39a17407
commit
aaad82cb7a
4 changed files with 27 additions and 1 deletions
21
Kavita.Common/KavitaException.cs
Normal file
21
Kavita.Common/KavitaException.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
|
||||
namespace Kavita.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// These are used for errors to send to the UI that should not be reported to Sentry
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class KavitaException : Exception
|
||||
{
|
||||
public KavitaException()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public KavitaException(string message) : base(message)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue