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
[formerly9b495681ec
[formerly 8b498ee96ab7309bc3cb70a4f93e05c0af60c824]] Former-commit-id:9b495681ec
Former-commit-id:a1c4148918
This commit is contained in:
parent
4db98f508d
commit
f7ccf2e765
1 changed files with 59 additions and 36 deletions
|
@ -213,27 +213,39 @@ public class FFMPDataGenerator {
|
||||||
.getCwa()))
|
.getCwa()))
|
||||||
|| (domain.isPrimary() && fmdb
|
|| (domain.isPrimary() && fmdb
|
||||||
.isPrimaryCwa())) {
|
.isPrimaryCwa())) {
|
||||||
|
try {
|
||||||
setFFMPRow(fbd.get(key), tData,
|
setFFMPRow(fbd.get(key), tData,
|
||||||
false, cwa);
|
false, cwa);
|
||||||
|
} catch (Exception e) {
|
||||||
if (virtualBasin != null) {
|
statusHandler.handle(
|
||||||
for (Long id : ft
|
Priority.PROBLEM,
|
||||||
.getVirtualGageBasinLookupIds(
|
"Couldn't create table row"
|
||||||
siteKey,
|
+ e);
|
||||||
key,
|
}
|
||||||
huc,
|
if (virtualBasin != null) {
|
||||||
resource.basinTableDlg
|
for (Long id : ft
|
||||||
.getRowName())) {
|
.getVirtualGageBasinLookupIds(
|
||||||
setFFMPRow(
|
siteKey,
|
||||||
virtualBasin
|
key,
|
||||||
.get(id),
|
huc,
|
||||||
tData, true, domain
|
resource.basinTableDlg
|
||||||
.getCwa());
|
.getRowName())) {
|
||||||
}
|
try {
|
||||||
}
|
setFFMPRow(
|
||||||
}
|
virtualBasin
|
||||||
}
|
.get(id),
|
||||||
|
tData, true,
|
||||||
|
domain.getCwa());
|
||||||
|
} catch (Exception e) {
|
||||||
|
statusHandler
|
||||||
|
.handle(Priority.PROBLEM,
|
||||||
|
"Couldn't create table row"
|
||||||
|
+ e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
|
@ -262,7 +274,10 @@ public class FFMPDataGenerator {
|
||||||
setFFMPRow(fbd.get(key), tData,
|
setFFMPRow(fbd.get(key), tData,
|
||||||
isVGB, null);
|
isVGB, null);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
statusHandler.handle(
|
||||||
|
Priority.PROBLEM,
|
||||||
|
"Couldn't create table row"
|
||||||
|
+ e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -290,20 +305,28 @@ public class FFMPDataGenerator {
|
||||||
// virtual basin
|
// virtual basin
|
||||||
if (virtualBasin != null) {
|
if (virtualBasin != null) {
|
||||||
for (Long id : ft
|
for (Long id : ft
|
||||||
.getVirtualGageBasinLookupIds(
|
.getVirtualGageBasinLookupIds(
|
||||||
siteKey,
|
siteKey,
|
||||||
key,
|
key,
|
||||||
huc,
|
huc,
|
||||||
resource.basinTableDlg
|
resource.basinTableDlg
|
||||||
.getRowName())) {
|
.getRowName())) {
|
||||||
setFFMPRow(
|
try {
|
||||||
virtualBasin
|
setFFMPRow(
|
||||||
.get(id),
|
virtualBasin
|
||||||
tData, true, null);
|
.get(id),
|
||||||
}
|
tData, true,
|
||||||
}
|
null);
|
||||||
}
|
} catch (Exception e) {
|
||||||
}
|
statusHandler
|
||||||
|
.handle(Priority.PROBLEM,
|
||||||
|
"Couldn't create table row"
|
||||||
|
+ e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue