示例#1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 static Oops()
 {
     ErrorMethods = new ConcurrentDictionary <MethodBase, MethodIfException>();
     _friendlyExceptionSettings = App.GetService <IOptions <FriendlyExceptionSettingsOptions> >().Value;
     ErrorCodeTypes             = GetErrorCodeTypes();
     ErrorCodeMessages          = GetErrorCodeMessages();
 }
示例#2
0
文件: Oops.cs 项目: MonkSoul/Furion
 /// <summary>
 /// 构造函数
 /// </summary>
 static Oops()
 {
     ErrorMethods = new ConcurrentDictionary <MethodBase, MethodIfException>();
     _friendlyExceptionSettings = App.GetConfig <FriendlyExceptionSettingsOptions>("FriendlyExceptionSettings", true);
     ErrorCodeTypes             = GetErrorCodeTypes();
     ErrorCodeMessages          = GetErrorCodeMessages();
 }