DSInternals/Src/DSInternals.DataStore/Exceptions/InvalidDatabaseStateExcepti...

18 lines
522 B
C#
Raw Normal View History

2016-02-21 08:16:56 +00:00
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)
2016-02-21 08:16:56 +00:00
{
this.Data[FilePathDataKey] = filePath;
}
}
}