Changeset 11374 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2016-12-09T23:31:13+01:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r11315 r11374 45 45 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 46 46 import org.openstreetmap.josm.tools.Geometry; 47 import org.openstreetmap.josm.tools.JosmRuntimeException; 47 48 import org.openstreetmap.josm.tools.Pair; 48 49 import org.openstreetmap.josm.tools.Shortcut; … … 1125 1126 WayInPolygon nextWay = traverser.walk(); 1126 1127 if (nextWay == null) 1127 throw new RuntimeException("Join areas internal error.");1128 throw new JosmRuntimeException("Join areas internal error."); 1128 1129 if (path.get(0) == nextWay) { 1129 1130 // path is closed -> stop here … … 1180 1181 while ((nextWay = traverser.walk()) != startWay) { 1181 1182 if (nextWay == null) 1182 throw new RuntimeException("Join areas internal error.");1183 throw new JosmRuntimeException("Join areas internal error."); 1183 1184 simpleRingWays.add(nextWay); 1184 1185 } … … 1254 1255 //should not happen 1255 1256 if (joinedWay == null || !joinedWay.isClosed()) 1256 throw new RuntimeException("Join areas internal error.");1257 throw new JosmRuntimeException("Join areas internal error."); 1257 1258 1258 1259 return joinedWay; -
trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
r11116 r11374 31 31 import org.openstreetmap.josm.gui.ConditionalOptionPaneUtil; 32 32 import org.openstreetmap.josm.gui.Notification; 33 import org.openstreetmap.josm.tools.JosmRuntimeException; 33 34 import org.openstreetmap.josm.tools.Shortcut; 34 35 … … 294 295 w.calcDirections(Direction.RIGHT.changeBy(directionOffset)); 295 296 if (angleToDirectionChange(refHeading - w.heading, TOLERANCE2) != 0) 296 throw new RuntimeException();297 throw new JosmRuntimeException("orthogonalize error"); 297 298 totSum = EN.sum(totSum, w.segSum); 298 299 } … … 403 404 } 404 405 } 405 if (!s.isEmpty()) throw new RuntimeException();406 if (!s.isEmpty()) throw new JosmRuntimeException("orthogonalize error"); 406 407 } 407 408 -
trunk/src/org/openstreetmap/josm/actions/search/PushbackTokenizer.java
r8846 r11374 12 12 13 13 import org.openstreetmap.josm.actions.search.SearchCompiler.ParseError; 14 import org.openstreetmap.josm.tools.JosmRuntimeException; 14 15 15 16 public class PushbackTokenizer { … … 74 75 c = search.read(); 75 76 } catch (IOException e) { 76 throw new RuntimeException(e.getMessage(), e);77 throw new JosmRuntimeException(e.getMessage(), e); 77 78 } 78 79 } -
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r10711 r11374 55 55 import org.openstreetmap.josm.gui.widgets.HistoryComboBox; 56 56 import org.openstreetmap.josm.tools.GBC; 57 import org.openstreetmap.josm.tools.JosmRuntimeException; 57 58 import org.openstreetmap.josm.tools.Shortcut; 58 59 import org.openstreetmap.josm.tools.Utils; … … 229 230 tf.getDocument().insertString(tf.getCaretPosition(), ' ' + insertText, null); 230 231 } catch (BadLocationException ex) { 231 throw new RuntimeException(ex.getMessage(), ex);232 throw new JosmRuntimeException(ex.getMessage(), ex); 232 233 } 233 234 }
Note:
See TracChangeset
for help on using the changeset viewer.