1
0
mirror of https://github.com/chylex/Discord-History-Tracker.git synced 2024-12-22 23:42:50 +01:00
Discord-History-Tracker/app/Server/Database/Exceptions/DatabaseTooNewException.cs
2022-02-21 22:27:29 +01:00

14 lines
422 B
C#

using System;
using DHT.Server.Database.Sqlite;
namespace DHT.Server.Database.Exceptions {
public sealed class DatabaseTooNewException : Exception {
public int DatabaseVersion { get; }
public int CurrentVersion => Schema.Version;
internal DatabaseTooNewException(int databaseVersion) : base("Database is too new: " + databaseVersion + " > " + Schema.Version) {
this.DatabaseVersion = databaseVersion;
}
}
}