summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:23:11 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:23:11 +0000
commit266123565be9267ce29430447e818f1d4a587d97 (patch)
tree27d9c05f7666600b700f94172427a5ad5d668e2f /pdf-over-gui/src/main
parent7fe51bfc593c3d89411e8ef4a99ac1f65964c3e6 (diff)
downloadmocca-266123565be9267ce29430447e818f1d4a587d97.tar.gz
mocca-266123565be9267ce29430447e818f1d4a587d97.tar.bz2
mocca-266123565be9267ce29430447e818f1d4a587d97.zip
Show PDF-AS Connector exception message
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@292 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java
index 712b0472..70a5a9d0 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java
@@ -25,7 +25,9 @@ import at.asit.pdfover.gui.controls.Dialog.BUTTONS;
import at.asit.pdfover.gui.utils.Messages;
import at.asit.pdfover.gui.workflow.StateMachine;
import at.asit.pdfover.gui.workflow.Status;
+import at.asit.pdfover.signator.SignatureException;
import at.asit.pdfover.signator.Signer;
+import at.knowcenter.wag.egov.egiz.exceptions.ConnectorException;
/**
* Logical state for signing process, usually show BKU Dialog during this state.
@@ -88,8 +90,14 @@ public class SigningState extends State {
}
if(this.threadException != null) {
+ String message = Messages.getString("error.Signatur"); //$NON-NLS-1$
+ if (this.threadException instanceof SignatureException) {
+ Throwable cause = this.threadException.getCause();
+ if (cause instanceof ConnectorException)
+ message += ": " + cause.getMessage(); //$NON-NLS-1$
+ }
ErrorDialog error = new ErrorDialog(this.stateMachine.getGUIProvider().getMainShell(),
- Messages.getString("error.Signatur"), BUTTONS.RETRY_CANCEL); //$NON-NLS-1$
+ message, BUTTONS.RETRY_CANCEL);
this.threadException = null;
if(error.open() == SWT.RETRY) {
this.setNextState(new BKUSelectionState(this.stateMachine));