Try {
...
}
Catch {
MyMethod();
}
...
and in other code :
MyMethod()
{
MessageBox.show(Convert.ToString(err.number)); // err.number is the
error-number on catch (like VB.NET). what should I write instead?
MessageBox.show(err.Message); // err.message is the error message on
catch. What should I write instead?
}