L
Luthgers, John
Hi,
my application uses a global exception handler to catch any unhandled
exceptions and then shows a dialog to inform the user. The dialog shows the
exception content and gives the ability to send an error report to my
website. Now i noticed, that the exception text of system exceptions can by
localized by installing the dotnet language packs. The result is, that some
users send a japanese exception to the website.
My goal is:
1) show the user the localized exception message within the dialog
2) send the exception in english to the website, so i can read it later
Goal 1 is already accomplished. And I know that i can change the culture via
"Thread.CurrentThread.CurrentUICulture" to english, but that works only if
the culture is set before the exception is thrown and doing so avoid the
abillity to show a localized version of the message to the user.
Is there any way to "reinit" the text of an exception based on the current
culture?
-J-
my application uses a global exception handler to catch any unhandled
exceptions and then shows a dialog to inform the user. The dialog shows the
exception content and gives the ability to send an error report to my
website. Now i noticed, that the exception text of system exceptions can by
localized by installing the dotnet language packs. The result is, that some
users send a japanese exception to the website.
My goal is:
1) show the user the localized exception message within the dialog
2) send the exception in english to the website, so i can read it later
Goal 1 is already accomplished. And I know that i can change the culture via
"Thread.CurrentThread.CurrentUICulture" to english, but that works only if
the culture is set before the exception is thrown and doing so avoid the
abillity to show a localized version of the message to the user.
Is there any way to "reinit" the text of an exception based on the current
culture?
-J-