增加了一个数据库注入异常

This commit is contained in:
FalconFly 2024-03-21 11:14:52 +08:00
parent cd111b81fc
commit b90a22ac6e

View File

@ -0,0 +1,16 @@
using System;
namespace Falcon.SugarApi.DatabaseManager
{
/// <summary>
/// 数据库注入失败异常
/// </summary>
public class DatabaseDIFailException<T> :Exception
where T: DbContextBase {
/// <summary>
/// 数据库注入失败
/// </summary>
public DatabaseDIFailException():base($"数据库{nameof(T)}注入失败!无法获取数据库实例!") { }
}
}