Omaha #3015 improved exception handling for MPE lightning
Change-Id: I3ab01d811bf49dbeced48d43744b93d470815636 Former-commit-id:246dcda707
[formerly 57f997f93e7e063ad6f24074ab3d1b8f02962bb8] Former-commit-id:eccfebaa96
This commit is contained in:
parent
c52a832f1a
commit
9aa1cb03e1
1 changed files with 9 additions and 5 deletions
|
@ -58,6 +58,7 @@ import com.vividsolutions.jts.geom.Coordinate;
|
|||
* Mar 28, 2014 2952 mpduff Changed to use UFStatus for logging.
|
||||
* Jun 05, 2014 3226 bclement BinLightning refactor
|
||||
* Aug 20, 2014 3549 njensen Fixed spelling in exceptions
|
||||
* Sep 17, 2014 3015 bclement improved exception handling
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -100,7 +101,7 @@ public class MpeLightningSrv {
|
|||
rs = (QueryResult) coreDao.executeNativeSql(lgtSQL, true);
|
||||
} catch (Exception e) {
|
||||
throw new EdexException("Couldn't get BinLightning records from"
|
||||
+ " metadata database. " + e);
|
||||
+ " metadata database. Failed SQL: " + lgtSQL, e);
|
||||
}
|
||||
return rs.getRows();
|
||||
}
|
||||
|
@ -184,13 +185,16 @@ public class MpeLightningSrv {
|
|||
|
||||
} catch (StorageException se) {
|
||||
throw new EdexException(
|
||||
"Could not retrieve datasets from datastore : " + se);
|
||||
"Could not retrieve datasets from datastore for dataURI: "
|
||||
+ dataURI, se);
|
||||
} catch (HibernateException he) {
|
||||
throw new EdexException(
|
||||
"Could not insert into ifhs lightning table : " + he);
|
||||
"Could not insert into ifhs lightning table for dataURI: "
|
||||
+ dataURI, he);
|
||||
} catch (Exception e) {
|
||||
throw new EdexException("Could not convert to grid coordinate : "
|
||||
+ e);
|
||||
throw new EdexException(
|
||||
"Could not convert to grid coordinate for dataURI: "
|
||||
+ dataURI, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue