Walle.Api/AI.Common/FriendlyInternalException.cs

18 lines
519 B
C#
Raw 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.

namespace AI.Common
{
/// <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 = 1000) : base(message)
{
ErrorCode = errorCode;
FriendlyData = friendlyData;
}
}
}