mirror of
https://github.com/JuniorDark/RustyHearts-Launcher.git
synced 2026-05-07 05:21:44 -04:00
Add project files.
This commit is contained in:
commit
5d3b4542bf
120 changed files with 36258 additions and 0 deletions
15
RHLauncher.Helper/ExceptionHandler.cs
Normal file
15
RHLauncher.Helper/ExceptionHandler.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using RHLauncher.Helper;
|
||||
|
||||
namespace RHLauncher.RHLauncher.Helper
|
||||
{
|
||||
public class ExceptionHandler
|
||||
{
|
||||
public static void HandleException(Exception ex, Exception exlog)
|
||||
{
|
||||
string errorMessage = $"Error: {ex.Message}";
|
||||
string errorLog = $"Error:{ex.Message} {Environment.NewLine} {exlog.Message}";
|
||||
Logger.WriteLog(errorLog);
|
||||
MsgBoxForm.Show(errorMessage, LocalizedStrings.Error);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue