Project

General

Profile

« Previous | Next » 

Revision 675

Added by berkley over 23 years ago

added precise location information (class.method) to each catch statement so that errors are more easily traced.

View differences:

DataStreamTest.java
73 73
    } 
74 74
    catch (UnknownHostException e) 
75 75
    {
76
      System.err.println("Don't know about host: " + host);
77
      System.out.println("error: " + e.getMessage());
76
      System.err.println("Don't know about host: " + host + 
77
                         " : error in DataStreamTest.sendFile: " + 
78
                         e.getMessage());
78 79
      e.printStackTrace(System.out);
79 80
      System.exit(1);
80 81
    } 
81 82
    catch (IOException e) 
82 83
    {
83
      System.err.println("Couldn't get I/O for "
84
                         + "the connection to: " + host);
84
      System.err.println("IO error in DataStreamTest.sendFile: "
85
                         + "broken connection to: " + host);
85 86
      System.out.println("error: " + e.getMessage());
86 87
      e.printStackTrace(System.out);
87 88
      System.exit(1);
......
148 149
	  }
149 150
	  catch (Exception w) 
150 151
    {
151
      System.out.println("error in DataStreamTest: " + w.getMessage());
152
      System.out.println("error in DataStreamTest.sendFile: " + w.getMessage());
152 153
    }
153 154
   
154 155
    try
......
173 174
    }
174 175
    catch(Exception e)
175 176
    {
176
      System.out.println("error: " + e.getMessage());
177
      System.out.println("error in DataStreamTest.sendFile: " + e.getMessage());
177 178
    }
178 179
	  return retmsg;
179 180
	}

Also available in: Unified diff