Merge pull request #2810 from peppy/remove-migrate-exception

Remove custom migration exception
This commit is contained in:
Dan Balasescu
2018-06-15 17:34:46 +09:00
committed by GitHub

View File

@ -181,24 +181,6 @@ namespace osu.Game.Database
}
}
public void Migrate()
{
try
{
Database.Migrate();
}
catch (Exception e)
{
throw new MigrationFailedException(e);
}
}
}
public class MigrationFailedException : Exception
{
public MigrationFailedException(Exception exception)
: base("sqlite-net migration failed", exception)
{
}
public void Migrate() => Database.Migrate();
}
}