DSInternals/Src/DSInternals.DataStore/Exceptions/InvalidDatabaseStateException.cs
2018-07-14 13:36:50 +02:00

18 lines
522 B
C#

using System;
namespace DSInternals.DataStore
{
public class InvalidDatabaseStateException : Exception
{
private const string FilePathDataKey = "FilePath";
public InvalidDatabaseStateException(string message, string filePath) : this(message, filePath, null)
{
}
public InvalidDatabaseStateException(string message, string filePath, Exception innerException) : base(message, innerException)
{
this.Data[FilePathDataKey] = filePath;
}
}
}