diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-07-24 14:58:34 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-07-24 14:58:34 +0000 |
commit | 692c813f44f3f4e79e6dbb3b419448731a176075 (patch) | |
tree | 3cc1ff410d2c36aeaa1fe8a90d8df04aba845999 /pdf-over-gui/src/main/java/at/asit/pdfover | |
parent | ace0e313c742fa8542ffbf1c8b119547ce40a69c (diff) | |
download | mocca-692c813f44f3f4e79e6dbb3b419448731a176075.tar.gz mocca-692c813f44f3f4e79e6dbb3b419448731a176075.tar.bz2 mocca-692c813f44f3f4e79e6dbb3b419448731a176075.zip |
Include exception msg in MobileBKU error dialog
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@472 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java index 7df640de..8c0f02cb 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java @@ -186,9 +186,13 @@ public class MobileBKUState extends State { MobileBKUStatus mobileStatus = this.getStatus(); if (this.threadException != null) { + String message = Messages.getString("error.Unexpected"); //$NON-NLS-1$ + String errormsg = this.threadException.getLocalizedMessage(); + if (errormsg != null && !errormsg.isEmpty()) + message += ": " + errormsg; //$NON-NLS-1$ ErrorDialog error = new ErrorDialog( getStateMachine().getGUIProvider().getMainShell(), - Messages.getString("error.Unexpected"), BUTTONS.OK); //$NON-NLS-1$ + message, BUTTONS.OK); // error.setException(this.threadException); // this.setNextState(error); error.open(); |