迁移实体文件位置

This commit is contained in:
小白猿
2023-08-17 20:32:18 +08:00
parent 0b8efda541
commit 199dd5d389
5 changed files with 390 additions and 4 deletions
+44
View File
@@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BarrageGrab.Modles
{
/// <summary>
/// 业务异常
/// </summary>
public class BusinessExecption : Exception
{
/// <summary>
/// 错误码
/// </summary>
public int Code { get; set; } = -1;
/// <summary>
/// 异常附加数据
/// </summary>
public object ErrorTarget { get; set; } = null;
public BusinessExecption()
{
}
public BusinessExecption(string msg) : base(msg)
{
this.Code = -1;
}
public BusinessExecption(string msg,object data) : base(msg)
{
this.ErrorTarget = data;
}
public BusinessExecption(string msg, int code) : this(msg)
{
this.Code = code;
}
}
}