Ignore:
Timestamp:
2016-12-09T23:31:13+01:00 (7 years ago)
Author:
Don-vip
Message:

sonar - squid:S00112 - Generic exceptions should never be thrown: define JosmRuntimeException

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/DataSetMerger.java

    r10308 r11374  
    1818import org.openstreetmap.josm.gui.progress.ProgressMonitor;
    1919import org.openstreetmap.josm.tools.CheckParameterUtil;
     20import org.openstreetmap.josm.tools.JosmRuntimeException;
    2021
    2122/**
     
    143144        Way myWay = (Way) getMergeTarget(other);
    144145        if (myWay == null)
    145             throw new RuntimeException(tr("Missing merge target for way with id {0}", other.getUniqueId()));
     146            throw new JosmRuntimeException(tr("Missing merge target for way with id {0}", other.getUniqueId()));
    146147    }
    147148
     
    178179                OsmPrimitive source = sourceDataSet.getPrimitiveById(target.getPrimitiveId());
    179180                if (source == null)
    180                     throw new RuntimeException(
     181                    throw new JosmRuntimeException(
    181182                            tr("Object of type {0} with id {1} was marked to be deleted, but it''s missing in the source dataset",
    182183                            target.getType(), target.getUniqueId()));
Note: See TracChangeset for help on using the changeset viewer.