Hi,

I have a little problem with catching java.net.SocketException o list() command from java

if list() command is executed without connection java executes exception java.net.SocketException but I cannot catch this exception.
Procedure breaks but i cannot take control on it .

Thanx for any help.

                                        try {
                        con.list();
                    } catch (java.net.SocketException e) {
                        // TODO Auto-generated catch block
                        System.out.println("exception on con.list() command");
                       
                    } catch (IOException e) {
                        // TODO Auto-generated catch block
                        System.out.println("exception on con.list() command");
                       
                    }