2016-02-21 08:16:56 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace DSInternals.DataStore
|
|
|
|
|
{
|
|
|
|
|
public class InvalidDatabaseStateException : Exception
|
|
|
|
|
{
|
|
|
|
|
private const string FilePathDataKey = "FilePath";
|
|
|
|
|
|
2018-07-14 11:36:50 +00:00
|
|
|
|
public InvalidDatabaseStateException(string message, string filePath) : this(message, filePath, null)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public InvalidDatabaseStateException(string message, string filePath, Exception innerException) : base(message, innerException)
|
2016-02-21 08:16:56 +00:00
|
|
|
|
{
|
|
|
|
|
this.Data[FilePathDataKey] = filePath;
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-07-14 11:36:50 +00:00
|
|
|
|
}
|