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,
|
||||
String failureDetails) {
|
||||
card.showErrorAndHide("Error uploading the xml file", reason,
|
||||
caught);
|
||||
"", caught);
|
||||
}
|
||||
|
||||
public void operationComplete() {
|
||||
|
|
|
@ -65,8 +65,8 @@ public class CodelistMappingOperationInProgressCard extends WizardCard
|
|||
|
||||
description.setHTML(2, 0,
|
||||
"<span style=\"font-weight:bold;\";>Name: </span>");
|
||||
description.setText(2, 1, codelistMappingSession.getResourceTDDescriptor()
|
||||
.getName());
|
||||
description.setText(2, 1, codelistMappingSession
|
||||
.getResourceTDDescriptor().getName());
|
||||
|
||||
FramedPanel summary = new FramedPanel();
|
||||
summary.setHeadingText("Import Summary");
|
||||
|
@ -102,19 +102,20 @@ public class CodelistMappingOperationInProgressCard extends WizardCard
|
|||
} else {
|
||||
if (caught instanceof TDGWTIsLockedException) {
|
||||
Log.error(caught.getLocalizedMessage());
|
||||
showErrorAndHide("Error Locked",
|
||||
caught.getLocalizedMessage(), caught);
|
||||
showErrorAndHide("Error",
|
||||
caught.getLocalizedMessage(), "",
|
||||
caught);
|
||||
} else {
|
||||
if (caught instanceof TDGWTIsFinalException) {
|
||||
Log.error(caught.getLocalizedMessage());
|
||||
showErrorAndHide("Error Final",
|
||||
caught.getLocalizedMessage(),
|
||||
showErrorAndHide("Error",
|
||||
caught.getLocalizedMessage(), "",
|
||||
caught);
|
||||
} else {
|
||||
showErrorAndHide(
|
||||
"Error in import codelist mapping",
|
||||
"An error occured in import codelist mapping: "
|
||||
+ caught.getLocalizedMessage(),
|
||||
"An error occured in import codelist mapping: ",
|
||||
caught.getLocalizedMessage(),
|
||||
caught);
|
||||
}
|
||||
}
|
||||
|
@ -127,7 +128,6 @@ public class CodelistMappingOperationInProgressCard extends WizardCard
|
|||
public void setup() {
|
||||
getWizardWindow().setEnableBackButton(false);
|
||||
setBackButtonVisible(false);
|
||||
setNextButtonVisible(false);
|
||||
getWizardWindow().setEnableNextButton(false);
|
||||
getWizardWindow().setNextButtonToFinish();
|
||||
importCodelistMapping();
|
||||
|
@ -188,14 +188,15 @@ public class CodelistMappingOperationInProgressCard extends WizardCard
|
|||
if (caught instanceof TDGWTIsLockedException) {
|
||||
Log.error(caught.getLocalizedMessage());
|
||||
showErrorAndHide("Error Locked", caught.getLocalizedMessage(),
|
||||
caught);
|
||||
"", caught);
|
||||
} else {
|
||||
if (caught instanceof TDGWTIsFinalException) {
|
||||
Log.error(caught.getLocalizedMessage());
|
||||
showErrorAndHide("Error Final",
|
||||
caught.getLocalizedMessage(), caught);
|
||||
caught.getLocalizedMessage(), "", caught);
|
||||
} 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) {
|
||||
Log.error(caught.getLocalizedMessage());
|
||||
showErrorAndHide("Error Locked",
|
||||
caught.getLocalizedMessage(), caught);
|
||||
caught.getLocalizedMessage(), "", caught);
|
||||
} else {
|
||||
if (caught instanceof TDGWTIsFinalException) {
|
||||
Log.error(caught.getLocalizedMessage());
|
||||
showErrorAndHide("Error Final",
|
||||
caught.getLocalizedMessage(),
|
||||
caught);
|
||||
"", caught);
|
||||
} else {
|
||||
showErrorAndHide(
|
||||
"Error in import codelist mapping",
|
||||
"An error occured in import codelist mapping: "
|
||||
+ caught.getLocalizedMessage(),
|
||||
caught);
|
||||
"", caught);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -226,15 +226,15 @@ public class CodelistMappingTableDetailCard extends WizardCard implements
|
|||
if (caught instanceof TDGWTIsLockedException) {
|
||||
Log.error(caught.getLocalizedMessage());
|
||||
showErrorAndHide("Error Locked", caught.getLocalizedMessage(),
|
||||
caught);
|
||||
"", caught);
|
||||
} else {
|
||||
if (caught instanceof TDGWTIsFinalException) {
|
||||
Log.error(caught.getLocalizedMessage());
|
||||
showErrorAndHide("Error Final",
|
||||
caught.getLocalizedMessage(), caught);
|
||||
caught.getLocalizedMessage(), "", caught);
|
||||
} else {
|
||||
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) {
|
||||
Log.error(caught.getLocalizedMessage());
|
||||
showErrorAndHide("Error Locked",
|
||||
caught.getLocalizedMessage(), caught);
|
||||
caught.getLocalizedMessage(), "",
|
||||
caught);
|
||||
} else {
|
||||
if (caught instanceof TDGWTIsFinalException) {
|
||||
Log.error(caught.getLocalizedMessage());
|
||||
showErrorAndHide("Error Final",
|
||||
caught.getLocalizedMessage(),
|
||||
caught.getLocalizedMessage(), "",
|
||||
caught);
|
||||
} else {
|
||||
showErrorAndHide(
|
||||
"Error",
|
||||
"Error retrieving the file from the workspace: "
|
||||
+ caught.getLocalizedMessage(),
|
||||
"Error retrieving the file from the workspace: ",
|
||||
caught.getLocalizedMessage(),
|
||||
caught);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -277,19 +277,18 @@ public class TabResourcesSelectionPanel extends ContentPanel implements
|
|||
if (caught instanceof TDGWTIsLockedException) {
|
||||
Log.error(caught.getLocalizedMessage());
|
||||
parent.showErrorAndHide("Error Locked",
|
||||
caught.getLocalizedMessage(), caught);
|
||||
caught.getLocalizedMessage(), "", caught);
|
||||
} else {
|
||||
if (caught instanceof TDGWTIsFinalException) {
|
||||
Log.error(caught.getLocalizedMessage());
|
||||
parent.showErrorAndHide("Error Final",
|
||||
caught.getLocalizedMessage(),
|
||||
caught);
|
||||
"", caught);
|
||||
} else {
|
||||
Log.debug("Error retrieving tabular resource: "
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3
|
||||
.alert("Error!",
|
||||
"Error retrieving tabular resources on server!");
|
||||
parent.showErrorAndHide("Error",
|
||||
"Error retrieving tabular resources on server: ",caught.getLocalizedMessage(),caught);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -144,10 +144,12 @@ public class ColumnDataGridPanel extends ContentPanel implements
|
|||
if (caught instanceof TDGWTIsLockedException) {
|
||||
Log.error(caught.getLocalizedMessage());
|
||||
parent.showErrorAndHide("Error Locked",
|
||||
caught.getLocalizedMessage(), caught);
|
||||
caught.getLocalizedMessage(), "", caught);
|
||||
} else {
|
||||
Log.error("No load columns: "
|
||||
+ caught.getLocalizedMessage());
|
||||
parent.showErrorAndHide("Error","No load columns:",
|
||||
caught.getLocalizedMessage(), caught);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue