to throw manual error message, if ftp connection timed out [message #446266] |
Sun, 07 March 2010 05:59 |
devi_vi
Messages: 10 Registered: March 2010 Location: bangalore
|
Junior Member |
|
|
hi all.,
i have a requirement like, am connecting to a server and transfering a file through ftp....
suppose if the the server is present and it is not responding,the program tries for 2 mins and then the program automatically throws an exception like ftp:connection timedout...
but i need to handle that exception, and manually thrrow an error message... if the connection takes more than 30 seconds i need to therow an error message.,
is ther any ways to achieve this... pls help someone... its really urgent....
|
|
|
|
|