Can anyone shed some light on these errors?
public void FaultHandler () {
int faultCount = 0;
while ( faultCount < 4 ) {
DatagramPacket request =
new DatagramPacket(requestArray, requestArray.length, aHost, proxyPort);
aSocket.send(request);
try {
aSocket.setSoTimeout(4000);
aSocket.receive(reply);
}
catch ( SocketTimeoutException e ) {
faultCount++;
continue;
}
catch ( IOException e ){}
break;
catch ( IOException e ) {} //----it doesn't like this line!
if ( faultCount >= 3 )
System.exit(0);
}
}
I keep getting these errors:
'catch' without 'try'
catch ( IOException e ) {}
^
Ex2Client.java:18: ')' expected
catch ( IOException e ) {}
^
Ex2Client.java:18: not a statement
catch ( IOException e ) {}
^
Ex2Client.java:18: ';' expected
catch ( IOException e ) {}