WGShare.API/WGShare.Domain/FriendlyException/Exceptions/FriendlyInternalException.cs

20 lines
597 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
namespace WGShare.Domain.FriendlyException.Exceptions
{
/// <summary>
/// Api内部错误错误细节不暴露给外部
/// </summary>
public class FriendlyInternalException : Exception
{
public int ErrorCode { get; private set; }
public object FriendlyData { get; private set; }
public FriendlyInternalException(string message, object friendlyData = null, int errorCode = FriendlyException.ErrorCode.x1000) : base(message)
{
ErrorCode = errorCode;
FriendlyData = friendlyData;
}
}
}