mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2024-11-25 05:42:45 +01:00
14 lines
422 B
C#
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;
|
|
}
|
|
}
|
|
}
|