OnException
(
Exception exception
)
{
Debug.Assert(exception != null);
if (exception is WorkbookFormatException)
{
OnWorkbookFormatException( (WorkbookFormatException)exception );
return;
}
FormUtil.ShowWarning( String.Format(
"An unexpected problem occurred. If it occurs again, please"
+ " copy the details to the clipboard by typing Ctrl-C, then"
+ " post the details to {0}."
+ "\r\n\r\n"
+ "Details:\r\n\r\n"
+ "{1}"
+ "\r\n\r\n"
+ "{2}"
,
ProjectInformation.DiscussionPageUrl,
ExceptionUtil.GetMessageTrace(exception),
exception.StackTrace
) );
}