Fixed: Recreate log database if migration fails

Fixes: #1050
This commit is contained in:
Mark McDowall
2016-07-19 18:57:36 -07:00
committed by GitHub
parent 8255fb0b28
commit 857d661ff1
5 changed files with 98 additions and 10 deletions
@@ -0,0 +1,24 @@
using System;
using NzbDrone.Common.Exceptions;
namespace NzbDrone.Core.Datastore
{
public class CorruptDatabaseException : NzbDroneException
{
public CorruptDatabaseException(string message, params object[] args) : base(message, args)
{
}
public CorruptDatabaseException(string message) : base(message)
{
}
public CorruptDatabaseException(string message, Exception innerException, params object[] args) : base(message, innerException, args)
{
}
public CorruptDatabaseException(string message, Exception innerException) : base(message, innerException)
{
}
}
}