Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Core] Display English exception in ExceptionBox #343

Open
wants to merge 10 commits into
base: 1.0.6.4
Choose a base branch
from

Conversation

shoushou1106
Copy link
Contributor

@shoushou1106 shoushou1106 commented May 18, 2024

  • Change exception format
  • Display English exception
  • Add log page
  • Copy button for exception and log
  • Add folder for crash log
  • Add log to crash log
  • Allow to ignore exception (do not close full app)
Screenshot:

(System language is zh-cn)
图片
Copy Exception:

Type=System.Collections.Generic.KeyNotFoundException
Message=The given key was not present in the dictionary.
Source=mscorlib
StackTrace:
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Frosty.Core.Config.get_Item(String option, ConfigScope scope, String profile) in E:\source\repos\fork\FrostyToolsuite\FrostyToolsuite_Legacy\FrostyPlugin\Config.cs:line 242
   at Frosty.Core.Config.Get[T](String option, T defaultValue, ConfigScope scope, String profile) in E:\source\repos\fork\FrostyToolsuite\FrostyToolsuite_Legacy\FrostyPlugin\Config.cs:line 215
   at FrostyModManager.Windows.SplashWindow.<Window_Loaded>d__1.MoveNext() in E:\source\repos\fork\FrostyToolsuite\FrostyToolsuite_Legacy\FrostyModManager\Windows\SplashWindow.xaml.cs:line 98
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Visual Studio

图片

Copy Details:

System.Collections.Generic.KeyNotFoundException
  HResult=0x80131577
  Message=The given key was not present in the dictionary.
  Source=mscorlib
  StackTrace:
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Frosty.Core.Config.get_Item(String option, ConfigScope scope, String profile) in E:\source\repos\fork\FrostyToolsuite\FrostyToolsuite_Legacy\FrostyPlugin\Config.cs:line 242
   at Frosty.Core.Config.Get[T](String option, T defaultValue, ConfigScope scope, String profile) in E:\source\repos\fork\FrostyToolsuite\FrostyToolsuite_Legacy\FrostyPlugin\Config.cs:line 215
   at FrostyModManager.Windows.SplashWindow.<Window_Loaded>d__1.MoveNext() in E:\source\repos\fork\FrostyToolsuite\FrostyToolsuite_Legacy\FrostyModManager\Windows\SplashWindow.xaml.cs:line 98

@shoushou1106
Copy link
Contributor Author

fix: Allow to display multiple lines of message
feat: Change UI style back

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant