20 lines
505 B
C#
20 lines
505 B
C#
using DispenserCommon.Enums;
|
|
|
|
namespace DispenserUI.Exceptions;
|
|
|
|
/// <summary>
|
|
/// 业务异常
|
|
/// </summary>
|
|
public class BizException(
|
|
string message,
|
|
string? code = null,
|
|
string? module = null,
|
|
Exception? exception = null,
|
|
ExceptionLevel? level = null) : ApplicationException(message, exception)
|
|
{
|
|
public ExceptionLevel Level { get; set; } = level ?? ExceptionLevel.NORMAL;
|
|
|
|
public string? Module { get; set; } = module;
|
|
|
|
public string? Code { get; set; } = code;
|
|
} |