using DispenserCommon.Enums; namespace DispenserUI.Exceptions; /// /// 业务异常 /// 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; }