- Timestamp:
- 2024-06-18T22:29:22+02:00 (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/CustomProjection.java
r19108 r19113 38 38 import org.openstreetmap.josm.tools.Utils; 39 39 import org.openstreetmap.josm.tools.bugreport.BugReport; 40 import org.openstreetmap.josm.tools.bugreport.ReportedException; 40 41 41 42 /** … … 223 224 * @param pref the string that defines the custom projection 224 225 */ 225 @SuppressWarnings("PMD.PreserveStackTrace") // PMD 7.2.x doesn't like log + new exception here for some reason.226 226 public CustomProjection(String name, String code, String pref) { 227 227 this.name = name; … … 235 235 update(null); 236 236 } catch (ProjectionConfigurationException ex1) { 237 throw BugReport.intercept(ex1).put("name", name).put("code", code).put("pref", pref); 237 ReportedException reportedException = BugReport.intercept(ex1).put("name", name).put("code", code).put("pref", pref); 238 reportedException.addSuppressed(ex); 239 throw reportedException; 238 240 } 239 241 }
Note:
See TracChangeset
for help on using the changeset viewer.