mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-05 01:00:51 +08:00
39 lines
909 B
C#
39 lines
909 B
C#
|
|
using System;
|
|||
|
|
using System.Runtime.Serialization;
|
|||
|
|
using Microsoft.Extensions.Logging;
|
|||
|
|
using Yi.Framework.Common.Enum;
|
|||
|
|
|
|||
|
|
namespace Yi.Framework.Common.Exceptions;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>û<EFBFBD><C3BB>Ѻ<EFBFBD><D1BA>쳣
|
|||
|
|
/// </summary>
|
|||
|
|
[Serializable]
|
|||
|
|
public class UserFriendlyException : BusinessException
|
|||
|
|
{
|
|||
|
|
public UserFriendlyException(
|
|||
|
|
string message,
|
|||
|
|
ResultCodeEnum code = ResultCodeEnum.NotSuccess,
|
|||
|
|
string details = null,
|
|||
|
|
Exception innerException = null,
|
|||
|
|
LogLevel logLevel = LogLevel.Warning)
|
|||
|
|
: base(
|
|||
|
|
code,
|
|||
|
|
message,
|
|||
|
|
details,
|
|||
|
|
innerException,
|
|||
|
|
logLevel)
|
|||
|
|
{
|
|||
|
|
Details = details;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD>л<EFBFBD><D0BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĺ<EFBFBD><C4B9>캯<EFBFBD><ECBAAF>
|
|||
|
|
/// </summary>
|
|||
|
|
public UserFriendlyException(SerializationInfo serializationInfo, StreamingContext context)
|
|||
|
|
: base(serializationInfo, context)
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|