mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2024-11-22 05:42:46 +01:00
14 lines
425 B
C#
14 lines
425 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 => SqliteSchema.Version;
|
|
|
|
internal DatabaseTooNewException(int databaseVersion) : base("Database is too new: " + databaseVersion + " > " + SqliteSchema.Version) {
|
|
this.DatabaseVersion = databaseVersion;
|
|
}
|
|
}
|