src/java/m/weps/V1_3.java
@@ -121,7 +121,7 @@ |
db = PostGIS.singleton(); |
} catch (Exception e) { |
LOG.severe("Error obtaining DB connection in WEPS run!"); |
- throw new ServiceException("WEPS error: Cannot obtain geospatial db connection"); |
+ throw new ServiceException("WEPS error: Cannot obtain geospatial db connection", e); |
} |
|
LOG.info("The default CISP WEPS user dir is=" + System.getProperty("user.dir")); |
@@ -326,9 +326,11 @@ |
try { |
if (Integer.parseInt(error) != 1) { |
LOG.log(Level.SEVERE, "THERE IS AN ERROR CODE RETURNED FROM THE MAN2WEPS TRANSLATOR. Code=" + error); |
+ throw new ServiceException("THERE IS AN ERROR CODE RETURNED FROM THE MAN2WEPS TRANSLATOR."); |
} |
} catch (NumberFormatException ex) { // I want to transition the numeric errors to string errors like this |
- LOG.log(Level.SEVERE, "THERE IS AN ERROR: " + error); |
+ LOG.log(Level.SEVERE, "THERE IS AN ERROR: ", ex); |
+ throw new ServiceException("LMOD management translation error executing WEPS", ex); |
} |
} |
} catch (Exception e) { |
@@ -842,6 +844,7 @@ |
fos.close(); |
} catch (IOException ie) { |
LOG.log(Level.SEVERE, "ERROR GETTING SOILS IFC FILE!:" + ie.toString()); |
+ throw new RuntimeException(ie); |
} finally { |
if (fos != null) { |
try { |