Changeset 2413 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-11-08T18:51:51+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/ExceptionDialogUtil.java
r2387 r2413 6 6 7 7 import java.io.IOException; 8 import java.lang.reflect.InvocationTargetException; 8 9 import java.net.HttpURLConnection; 9 10 import java.net.SocketException; … … 17 18 import org.openstreetmap.josm.io.OsmChangesetCloseException; 18 19 import org.openstreetmap.josm.io.OsmTransferException; 20 import org.openstreetmap.josm.tools.BugReportExceptionHandler; 19 21 import org.openstreetmap.josm.tools.ExceptionUtil; 20 22 … … 82 84 */ 83 85 public static void explainGeneric(Exception e) { 86 e.printStackTrace(); 84 87 HelpAwareOptionPane.showOptionDialog( 85 88 Main.parent, … … 146 149 147 150 /** 151 * Explains a {@see InvocationTargetException } 152 * 153 * @param e the exception 154 */ 155 156 public static void explainNestedInvocationTargetException(Exception e) { 157 InvocationTargetException ex = getNestedException(e, InvocationTargetException.class); 158 if (ex != null) { 159 // Users should be able to submit a bug report for an invocation target exception 160 // 161 BugReportExceptionHandler.handleException(ex); 162 return; 163 } 164 } 165 166 /** 148 167 * Explains a {@see OsmApiException} which was thrown because of an internal server 149 * error in the OSM API server. .168 * error in the OSM API server. 150 169 * 151 170 * @param e the exception … … 334 353 */ 335 354 public static void explainException(Exception e) { 355 if (getNestedException(e, InvocationTargetException.class) != null) { 356 explainNestedInvocationTargetException(e); 357 return; 358 } 336 359 if (e instanceof OsmTransferException) { 337 360 explainOsmTransferException((OsmTransferException) e);
Note:
See TracChangeset
for help on using the changeset viewer.