mirror of
https://github.com/JuniorDark/RustyHearts-Launcher.git
synced 2026-05-07 13:31:45 -04:00
15 lines
514 B
C#
15 lines
514 B
C#
using RHLauncher.RHLauncher.i8n;
|
|
|
|
namespace RHLauncher.RHLauncher.Helper
|
|
{
|
|
public class ExceptionHandler
|
|
{
|
|
public static void HandleException(Exception ex, Exception exlog)
|
|
{
|
|
string errorMessage = $"{LocalizedStrings.Error}: {ex.Message}";
|
|
string errorLog = $"{LocalizedStrings.Error}: {ex.Message} {Environment.NewLine} {exlog.Message}";
|
|
Logger.WriteLog(errorLog);
|
|
MsgBoxForm.Show(errorMessage, LocalizedStrings.Error);
|
|
}
|
|
}
|
|
}
|