public class A
{
public void func()
{
...
try
{
sqlConnection.open();
}
catch(SQLExeption)
{
...
}
}
}
static void main(string[] argv)
{
A obj = new A();
obj.f();
}