Additional Exception handling

This commit is contained in:
Brett Hewitson 2021-12-03 10:44:46 +10:00
parent bd04866ea6
commit b45a855b42
3 changed files with 24 additions and 0 deletions

View file

@ -27,6 +27,14 @@ namespace ServerManagerTool.Plugin.Discord.Windows
{
ResourceUtils.UpdateResourceDictionary(this, plugin.LanguageCode);
}
catch (MissingFieldException)
{
// do nothing, most likely they are using an older version of a server manager
}
catch (MissingMethodException)
{
// do nothing, most likely they are using an older version of a server manager
}
catch (Exception)
{
// do nothing, most likely they are using an older version of a server manager

View file

@ -25,6 +25,14 @@ namespace ServerManagerTool.Plugin.Discord.Windows
{
ResourceUtils.UpdateResourceDictionary(this, plugin.LanguageCode);
}
catch (MissingFieldException)
{
// do nothing, most likely they are using an older version of a server manager
}
catch (MissingMethodException)
{
// do nothing, most likely they are using an older version of a server manager
}
catch (Exception)
{
// do nothing, most likely they are using an older version of a server manager

View file

@ -23,6 +23,14 @@ namespace ServerManagerTool.Plugin.Discord.Windows
{
ResourceUtils.UpdateResourceDictionary(this, plugin.LanguageCode);
}
catch (MissingFieldException)
{
// do nothing, most likely they are using an older version of a server manager
}
catch (MissingMethodException)
{
// do nothing, most likely they are using an older version of a server manager
}
catch (Exception)
{
// do nothing, most likely they are using an older version of a server manager