mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 08:46:34 +00:00
Revert "add correct business exception handling"
This reverts commit b1693b2894.
This commit is contained in:
@@ -12,7 +12,7 @@ public class BusinessException(ExceptionEnum exEnum) : Exception(GetMessage(exEn
|
||||
ExceptionDescriptions = EnumExtensions.GetDescriptions<ExceptionEnum>();
|
||||
}
|
||||
|
||||
public ExceptionEnum ExceptionEnum { get; set; } = exEnum;
|
||||
private ExceptionEnum ExceptionEnum { get; set; } = exEnum;
|
||||
|
||||
public static string GetMessage(ExceptionEnum exEnum) => ExceptionDescriptions.GetValueOrDefault(exEnum) ?? exEnum.ToString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user