1.注册缓存异常类
using System;
namespace Himall.Core
{
public class CacheRegisterException : HimallException
{
public CacheRegisterException() { }
public CacheRegisterException(string message) : base(message) { }
public CacheRegisterException(string message, Exception inner) : base(message, inner) { }
}
}
2.Himall 异常类
using System;
namespace Himall.Core
{
/// <summary>
/// Himall 异常
/// </summary>
public class HimallException : ApplicationException
{
public HimallException() {
Log.Info(this.Message, this);
}
public HimallException(string message) : base(message) {
Log.Info(message, this);
}
public HimallException(string message, Exception inn