309 |
|
_logger.write(this.toString(), Logger.ERROR, "IO error when connecting to server: "+e); |
310 |
|
throw new IOException("IO error when connecting to server"); |
311 |
|
} |
312 |
– |
catch(IrcException e) { |
313 |
– |
_logger.write(this.toString(), Logger.ERROR, "IRC error when connecting to server: "+e); |
314 |
– |
throw new IOException("IRC error when connecting to server"); |
315 |
– |
} |
312 |
|
catch(NickAlreadyInUseException e) { |
313 |
|
_logger.write(this.toString(), Logger.ERROR, "Nickname "+nick+" is already in use: "+e); |
314 |
|
// don't do anything, instead just loop round |
315 |
|
// and try the next nickname in the list |
316 |
+ |
} |
317 |
+ |
catch(IrcException e) { |
318 |
+ |
_logger.write(this.toString(), Logger.ERROR, "IRC error when connecting to server: "+e); |
319 |
+ |
throw new IOException("IRC error when connecting to server"); |
320 |
|
} |
321 |
|
} |
322 |
|
if(!ok) { |