Issue #1769 Try catches to try to trap hs-pid error happening during CAVE crash of FFMP table

Change-Id: I7bc3eb18a72753cc9847601aabab23cd32d109a1

Former-commit-id: c57d5574ef [formerly 9b495681ec [formerly 8b498ee96ab7309bc3cb70a4f93e05c0af60c824]]
Former-commit-id: 9b495681ec
Former-commit-id: a1c4148918
This commit is contained in:
Dave Hladky 2013-03-14 15:59:39 -05:00
parent 4db98f508d
commit f7ccf2e765

View file

@ -213,27 +213,39 @@ public class FFMPDataGenerator {
.getCwa()))
|| (domain.isPrimary() && fmdb
.isPrimaryCwa())) {
setFFMPRow(fbd.get(key), tData,
false, cwa);
if (virtualBasin != null) {
for (Long id : ft
.getVirtualGageBasinLookupIds(
siteKey,
key,
huc,
resource.basinTableDlg
.getRowName())) {
setFFMPRow(
virtualBasin
.get(id),
tData, true, domain
.getCwa());
}
}
}
}
try {
setFFMPRow(fbd.get(key), tData,
false, cwa);
} catch (Exception e) {
statusHandler.handle(
Priority.PROBLEM,
"Couldn't create table row"
+ e);
}
if (virtualBasin != null) {
for (Long id : ft
.getVirtualGageBasinLookupIds(
siteKey,
key,
huc,
resource.basinTableDlg
.getRowName())) {
try {
setFFMPRow(
virtualBasin
.get(id),
tData, true,
domain.getCwa());
} catch (Exception e) {
statusHandler
.handle(Priority.PROBLEM,
"Couldn't create table row"
+ e);
}
}
}
}
}
} else {
/*
@ -262,7 +274,10 @@ public class FFMPDataGenerator {
setFFMPRow(fbd.get(key), tData,
isVGB, null);
} catch (Exception e) {
e.printStackTrace();
statusHandler.handle(
Priority.PROBLEM,
"Couldn't create table row"
+ e);
}
}
}
@ -290,20 +305,28 @@ public class FFMPDataGenerator {
// virtual basin
if (virtualBasin != null) {
for (Long id : ft
.getVirtualGageBasinLookupIds(
siteKey,
key,
huc,
resource.basinTableDlg
.getRowName())) {
setFFMPRow(
virtualBasin
.get(id),
tData, true, null);
}
}
}
}
.getVirtualGageBasinLookupIds(
siteKey,
key,
huc,
resource.basinTableDlg
.getRowName())) {
try {
setFFMPRow(
virtualBasin
.get(id),
tData, true,
null);
} catch (Exception e) {
statusHandler
.handle(Priority.PROBLEM,
"Couldn't create table row"
+ e);
}
}
}
}
}
}
}
}