24 lines
478 B
C#
24 lines
478 B
C#
namespace YLErp.Abstract
|
|
{
|
|
/// <summary>
|
|
/// 错误处理接口(基本用于循环处理中发生错误的场景)
|
|
/// </summary>
|
|
public interface IErrorHandler
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
bool HasError { get; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
void AddError(string error);
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
IEnumerable<string> GetErrors();
|
|
}
|
|
}
|