Ignore:
Timestamp:
2014-02-01T03:18:43+01:00 (6 years ago)
Author:
Don-vip
Message:

fix some Sonar issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/CustomProjection.java

    r6388 r6798  
    113113                update(null);
    114114            } catch (ProjectionConfigurationException ex1) {
    115                 throw new RuntimeException();
     115                throw new RuntimeException(ex1);
    116116            }
    117117        }
     
    201201                initp = parseParameterList(init);
    202202            } catch (ProjectionConfigurationException ex) {
    203                 throw new ProjectionConfigurationException(tr(initKey+": "+ex.getMessage()));
     203                throw new ProjectionConfigurationException(tr(initKey+": "+ex.getMessage()), ex);
    204204            }
    205205            for (Map.Entry<String, String> e : parameters.entrySet()) {
     
    292292                towgs84Param.add(Double.parseDouble(str));
    293293            } catch (NumberFormatException e) {
    294                 throw new ProjectionConfigurationException(tr("Unable to parse value of parameter ''towgs84'' (''{0}'')", str));
     294                throw new ProjectionConfigurationException(tr("Unable to parse value of parameter ''towgs84'' (''{0}'')", str), e);
    295295            }
    296296        }
     
    380380        } catch (NumberFormatException e) {
    381381            throw new ProjectionConfigurationException(
    382                     tr("Unable to parse value ''{1}'' of parameter ''{0}'' as number.", parameterName, doubleStr));
     382                    tr("Unable to parse value ''{1}'' of parameter ''{0}'' as number.", parameterName, doubleStr), e);
    383383        }
    384384    }
Note: See TracChangeset for help on using the changeset viewer.