Revision 675
Added by berkley about 23 years ago
DataFileServer.java | ||
---|---|---|
178 | 178 |
} |
179 | 179 |
catch(Exception ee) |
180 | 180 |
{ |
181 |
System.out.println("error: " + ee.getMessage()); |
|
181 |
System.out.println("error DataFileServer.run(): " + ee.getMessage());
|
|
182 | 182 |
} |
183 | 183 |
e.printStackTrace(System.out); |
184 | 184 |
} |
... | ... | |
186 | 186 |
catch(InterruptedIOException iioe) |
187 | 187 |
{ |
188 | 188 |
//the accept timeout passed |
189 |
//System.out.println("socket on port " + port + " timed out."); |
|
189 |
System.out.println("socket on port " + port + " timed out. " + |
|
190 |
" (DataFileServer.run)"); |
|
190 | 191 |
} |
191 | 192 |
catch (IOException ex) |
192 | 193 |
{ |
... | ... | |
200 | 201 |
} |
201 | 202 |
catch(Exception ee) |
202 | 203 |
{ |
203 |
System.out.println("error: " + ee.getMessage()); |
|
204 |
System.out.println("error in DataFileServer.run(): " + ee.getMessage());
|
|
204 | 205 |
} |
205 | 206 |
} |
206 | 207 |
finally |
Also available in: Unified diff
added precise location information (class.method) to each catch statement so that errors are more easily traced.