Menu

[r6]: / trunk / GoogleContactsSync / ErrorHandler.cs  Maximize  Restore  History

Download this file

20 lines (17 with data), 775 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace WebGear.GoogleContactsSync
{
static class ErrorHandler
{
public static void Handle(Exception ex)
{
// TODO: Write a nice error dialog, that maybe supports directly E-Mail sending as bugreport
string message = "Sorry, an unexpected error occured.\nPlease support us fixing this problem. Go to\nhttps://sourceforge.net/projects/googlesyncmod/ and use the Tracker.\nHint: You can copy this message by pressing CTRL-C in the dialog box.\n\nError Details:\n{0}";
message = string.Format(message, ex.ToString());
MessageBox.Show(message, "Google Contact Sync");
}
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.