Fixed Error Management
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-codelistmapping-import-widget@101898 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
3b3ccfdbf4
commit
16d6abbb37
|
@ -163,7 +163,7 @@ public class CodelistMappingFileUploadPanel extends FormPanel {
|
||||||
public void operationFailed(Throwable caught, String reason,
|
public void operationFailed(Throwable caught, String reason,
|
||||||
String failureDetails) {
|
String failureDetails) {
|
||||||
card.showErrorAndHide("Error uploading the xml file", reason,
|
card.showErrorAndHide("Error uploading the xml file", reason,
|
||||||
caught);
|
"", caught);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void operationComplete() {
|
public void operationComplete() {
|
||||||
|
|
|
@ -65,8 +65,8 @@ public class CodelistMappingOperationInProgressCard extends WizardCard
|
||||||
|
|
||||||
description.setHTML(2, 0,
|
description.setHTML(2, 0,
|
||||||
"<span style=\"font-weight:bold;\";>Name: </span>");
|
"<span style=\"font-weight:bold;\";>Name: </span>");
|
||||||
description.setText(2, 1, codelistMappingSession.getResourceTDDescriptor()
|
description.setText(2, 1, codelistMappingSession
|
||||||
.getName());
|
.getResourceTDDescriptor().getName());
|
||||||
|
|
||||||
FramedPanel summary = new FramedPanel();
|
FramedPanel summary = new FramedPanel();
|
||||||
summary.setHeadingText("Import Summary");
|
summary.setHeadingText("Import Summary");
|
||||||
|
@ -102,19 +102,20 @@ public class CodelistMappingOperationInProgressCard extends WizardCard
|
||||||
} else {
|
} else {
|
||||||
if (caught instanceof TDGWTIsLockedException) {
|
if (caught instanceof TDGWTIsLockedException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
showErrorAndHide("Error Locked",
|
showErrorAndHide("Error",
|
||||||
caught.getLocalizedMessage(), caught);
|
caught.getLocalizedMessage(), "",
|
||||||
|
caught);
|
||||||
} else {
|
} else {
|
||||||
if (caught instanceof TDGWTIsFinalException) {
|
if (caught instanceof TDGWTIsFinalException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
showErrorAndHide("Error Final",
|
showErrorAndHide("Error",
|
||||||
caught.getLocalizedMessage(),
|
caught.getLocalizedMessage(), "",
|
||||||
caught);
|
caught);
|
||||||
} else {
|
} else {
|
||||||
showErrorAndHide(
|
showErrorAndHide(
|
||||||
"Error in import codelist mapping",
|
"Error in import codelist mapping",
|
||||||
"An error occured in import codelist mapping: "
|
"An error occured in import codelist mapping: ",
|
||||||
+ caught.getLocalizedMessage(),
|
caught.getLocalizedMessage(),
|
||||||
caught);
|
caught);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -127,7 +128,6 @@ public class CodelistMappingOperationInProgressCard extends WizardCard
|
||||||
public void setup() {
|
public void setup() {
|
||||||
getWizardWindow().setEnableBackButton(false);
|
getWizardWindow().setEnableBackButton(false);
|
||||||
setBackButtonVisible(false);
|
setBackButtonVisible(false);
|
||||||
setNextButtonVisible(false);
|
|
||||||
getWizardWindow().setEnableNextButton(false);
|
getWizardWindow().setEnableNextButton(false);
|
||||||
getWizardWindow().setNextButtonToFinish();
|
getWizardWindow().setNextButtonToFinish();
|
||||||
importCodelistMapping();
|
importCodelistMapping();
|
||||||
|
@ -188,14 +188,15 @@ public class CodelistMappingOperationInProgressCard extends WizardCard
|
||||||
if (caught instanceof TDGWTIsLockedException) {
|
if (caught instanceof TDGWTIsLockedException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
showErrorAndHide("Error Locked", caught.getLocalizedMessage(),
|
showErrorAndHide("Error Locked", caught.getLocalizedMessage(),
|
||||||
caught);
|
"", caught);
|
||||||
} else {
|
} else {
|
||||||
if (caught instanceof TDGWTIsFinalException) {
|
if (caught instanceof TDGWTIsFinalException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
showErrorAndHide("Error Final",
|
showErrorAndHide("Error Final",
|
||||||
caught.getLocalizedMessage(), caught);
|
caught.getLocalizedMessage(), "", caught);
|
||||||
} else {
|
} else {
|
||||||
showErrorAndHide("Error in Codelist Mapping Import", reason, caught);
|
showErrorAndHide("Error in Codelist Mapping Import",
|
||||||
|
reason, details, caught);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -183,19 +183,19 @@ public class CodelistMappingTableDetailCard extends WizardCard implements
|
||||||
if (caught instanceof TDGWTIsLockedException) {
|
if (caught instanceof TDGWTIsLockedException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
showErrorAndHide("Error Locked",
|
showErrorAndHide("Error Locked",
|
||||||
caught.getLocalizedMessage(), caught);
|
caught.getLocalizedMessage(), "", caught);
|
||||||
} else {
|
} else {
|
||||||
if (caught instanceof TDGWTIsFinalException) {
|
if (caught instanceof TDGWTIsFinalException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
showErrorAndHide("Error Final",
|
showErrorAndHide("Error Final",
|
||||||
caught.getLocalizedMessage(),
|
caught.getLocalizedMessage(),
|
||||||
caught);
|
"", caught);
|
||||||
} else {
|
} else {
|
||||||
showErrorAndHide(
|
showErrorAndHide(
|
||||||
"Error in import codelist mapping",
|
"Error in import codelist mapping",
|
||||||
"An error occured in import codelist mapping: "
|
"An error occured in import codelist mapping: "
|
||||||
+ caught.getLocalizedMessage(),
|
+ caught.getLocalizedMessage(),
|
||||||
caught);
|
"", caught);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -226,15 +226,15 @@ public class CodelistMappingTableDetailCard extends WizardCard implements
|
||||||
if (caught instanceof TDGWTIsLockedException) {
|
if (caught instanceof TDGWTIsLockedException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
showErrorAndHide("Error Locked", caught.getLocalizedMessage(),
|
showErrorAndHide("Error Locked", caught.getLocalizedMessage(),
|
||||||
caught);
|
"", caught);
|
||||||
} else {
|
} else {
|
||||||
if (caught instanceof TDGWTIsFinalException) {
|
if (caught instanceof TDGWTIsFinalException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
showErrorAndHide("Error Final",
|
showErrorAndHide("Error Final",
|
||||||
caught.getLocalizedMessage(), caught);
|
caught.getLocalizedMessage(), "", caught);
|
||||||
} else {
|
} else {
|
||||||
getWizardWindow().fireFailed("Error",
|
getWizardWindow().fireFailed("Error",
|
||||||
"Error in Codelist Mapping Import", caught);
|
"Error in Codelist Mapping Import", "", caught);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,18 +140,19 @@ public class CodelistMappingWorkSpaceSelectionCard extends WizardCard {
|
||||||
if (caught instanceof TDGWTIsLockedException) {
|
if (caught instanceof TDGWTIsLockedException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
showErrorAndHide("Error Locked",
|
showErrorAndHide("Error Locked",
|
||||||
caught.getLocalizedMessage(), caught);
|
caught.getLocalizedMessage(), "",
|
||||||
|
caught);
|
||||||
} else {
|
} else {
|
||||||
if (caught instanceof TDGWTIsFinalException) {
|
if (caught instanceof TDGWTIsFinalException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
showErrorAndHide("Error Final",
|
showErrorAndHide("Error Final",
|
||||||
caught.getLocalizedMessage(),
|
caught.getLocalizedMessage(), "",
|
||||||
caught);
|
caught);
|
||||||
} else {
|
} else {
|
||||||
showErrorAndHide(
|
showErrorAndHide(
|
||||||
"Error",
|
"Error",
|
||||||
"Error retrieving the file from the workspace: "
|
"Error retrieving the file from the workspace: ",
|
||||||
+ caught.getLocalizedMessage(),
|
caught.getLocalizedMessage(),
|
||||||
caught);
|
caught);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -277,19 +277,18 @@ public class TabResourcesSelectionPanel extends ContentPanel implements
|
||||||
if (caught instanceof TDGWTIsLockedException) {
|
if (caught instanceof TDGWTIsLockedException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
parent.showErrorAndHide("Error Locked",
|
parent.showErrorAndHide("Error Locked",
|
||||||
caught.getLocalizedMessage(), caught);
|
caught.getLocalizedMessage(), "", caught);
|
||||||
} else {
|
} else {
|
||||||
if (caught instanceof TDGWTIsFinalException) {
|
if (caught instanceof TDGWTIsFinalException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
parent.showErrorAndHide("Error Final",
|
parent.showErrorAndHide("Error Final",
|
||||||
caught.getLocalizedMessage(),
|
caught.getLocalizedMessage(),
|
||||||
caught);
|
"", caught);
|
||||||
} else {
|
} else {
|
||||||
Log.debug("Error retrieving tabular resource: "
|
Log.debug("Error retrieving tabular resource: "
|
||||||
+ caught.getLocalizedMessage());
|
+ caught.getLocalizedMessage());
|
||||||
UtilsGXT3
|
parent.showErrorAndHide("Error",
|
||||||
.alert("Error!",
|
"Error retrieving tabular resources on server: ",caught.getLocalizedMessage(),caught);
|
||||||
"Error retrieving tabular resources on server!");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -144,10 +144,12 @@ public class ColumnDataGridPanel extends ContentPanel implements
|
||||||
if (caught instanceof TDGWTIsLockedException) {
|
if (caught instanceof TDGWTIsLockedException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
parent.showErrorAndHide("Error Locked",
|
parent.showErrorAndHide("Error Locked",
|
||||||
caught.getLocalizedMessage(), caught);
|
caught.getLocalizedMessage(), "", caught);
|
||||||
} else {
|
} else {
|
||||||
Log.error("No load columns: "
|
Log.error("No load columns: "
|
||||||
+ caught.getLocalizedMessage());
|
+ caught.getLocalizedMessage());
|
||||||
|
parent.showErrorAndHide("Error","No load columns:",
|
||||||
|
caught.getLocalizedMessage(), caught);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue