mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +00:00
Additional Exception handling
This commit is contained in:
parent
bd04866ea6
commit
b45a855b42
3 changed files with 24 additions and 0 deletions
|
|
@ -27,6 +27,14 @@ namespace ServerManagerTool.Plugin.Discord.Windows
|
||||||
{
|
{
|
||||||
ResourceUtils.UpdateResourceDictionary(this, plugin.LanguageCode);
|
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)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
// do nothing, most likely they are using an older version of a server manager
|
// do nothing, most likely they are using an older version of a server manager
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,14 @@ namespace ServerManagerTool.Plugin.Discord.Windows
|
||||||
{
|
{
|
||||||
ResourceUtils.UpdateResourceDictionary(this, plugin.LanguageCode);
|
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)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
// do nothing, most likely they are using an older version of a server manager
|
// do nothing, most likely they are using an older version of a server manager
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,14 @@ namespace ServerManagerTool.Plugin.Discord.Windows
|
||||||
{
|
{
|
||||||
ResourceUtils.UpdateResourceDictionary(this, plugin.LanguageCode);
|
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)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
// do nothing, most likely they are using an older version of a server manager
|
// do nothing, most likely they are using an older version of a server manager
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue