Takuya Ono
takuy****@users*****
2007年 8月 17日 (金) 01:48:47 JST
Index: BetaProject/src/org/jent/checksmtp/SMTPclient.java diff -u BetaProject/src/org/jent/checksmtp/SMTPclient.java:1.5 BetaProject/src/org/jent/checksmtp/SMTPclient.java:1.6 --- BetaProject/src/org/jent/checksmtp/SMTPclient.java:1.5 Thu Aug 16 04:17:01 2007 +++ BetaProject/src/org/jent/checksmtp/SMTPclient.java Fri Aug 17 01:48:47 2007 @@ -1,6 +1,7 @@ package org.jent.checksmtp; import java.io.IOException; +import java.net.BindException; import java.net.InetAddress; import java.net.ServerSocket; @@ -54,10 +55,18 @@ InetAddress.getByAddress( new byte[] { 127, 0, 0, 1 })); } + } catch (BindException bindEx) { + //fatalError = true; + String errorMessage = "Recive Port bind error. " + bindEx.getMessage(); + System.err.println(errorMessage); + bindEx.printStackTrace(); + new MessageDialogUI(errorMessage, bindEx, MessageDialogUI.ERROR_MODE); + break; } catch (IOException e) { fatalError = true; - String errorMessage = "Fatal Error Occurred. Stop service."; + String errorMessage = "I/O Error Occurred. Stop service."; System.err.println(errorMessage); + e.printStackTrace(); new MessageDialogUI(errorMessage, e, MessageDialogUI.ERROR_MODE); break; } catch (IllegalArgumentException iaEx) { @@ -66,6 +75,7 @@ String errorMessage = "Argument Error Occurted(" + iaEx.getMessage() + "). Stop service."; System.err.println(errorMessage); + iaEx.printStackTrace(); new MessageDialogUI(errorMessage, iaEx, MessageDialogUI.ERROR_MODE); break; }