using ZelWiki.Engine.Library.Interfaces;
using ZelWiki.Repository;
namespace ZelWiki.Engine.Implementation
{
///
/// 异常处理.
///
public class ExceptionHandler : IExceptionHandler
{
///
/// 日志处理
///
///
///
///
public void Log(IZelEngineState state, Exception? ex, string customText)
{
if (ex != null)
{
ExceptionRepository.InsertException(ex, customText);
}
ExceptionRepository.InsertException(customText);
}
}
}