Changeset 5874 in josm for trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java
- Timestamp:
- 2013-04-16T19:57:43+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java
r5849 r5874 44 44 45 45 //http://stuffthathappens.com/blog/2007/10/15/one-more-note-on-uncaught-exception-handlers/ 46 /** 47 * Handles the given throwable object 48 * @param t The throwable object 49 */ 46 50 public void handle(Throwable t) { 47 51 handleException(t); 48 52 } 49 53 54 /** 55 * Handles the given exception 56 * @param e the exception 57 */ 50 58 public static void handleException(final Throwable e) { 51 59 if (handlingInProgress) … … 165 173 } 166 174 } 175 176 /** 177 * Determines if an exception is currently being handled 178 * @return {@code true} if an exception is currently being handled, {@code false} otherwise 179 */ 167 180 public static boolean exceptionHandlingInProgress() { 168 181 return handlingInProgress; … … 180 193 GZIPOutputStream gzip = new GZIPOutputStream(out); 181 194 gzip.write(debugText.getBytes("UTF-8")); 182 gzip.close();195 Utils.close(gzip); 183 196 184 197 return new URL("http://josm.openstreetmap.de/josmticket?" +
Note:
See TracChangeset
for help on using the changeset viewer.
