summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui
diff options
context:
space:
mode:
authorTobias Kellner <tobias.kellner@iaik.tugraz.at>2012-11-13 12:14:48 +0100
committerTobias Kellner <tobias.kellner@iaik.tugraz.at>2012-11-13 12:14:48 +0100
commitf443edf9d2b5db5ba900550a7f3e3ac7a4e65b92 (patch)
tree0947c40702ac7287cce01a711f444bea7ff091f0 /trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui
parent620a2b718947d6365f09ccadd1205526d43036f4 (diff)
downloadpdf-over-f443edf9d2b5db5ba900550a7f3e3ac7a4e65b92.tar.gz
pdf-over-f443edf9d2b5db5ba900550a7f3e3ac7a4e65b92.tar.bz2
pdf-over-f443edf9d2b5db5ba900550a7f3e3ac7a4e65b92.zip
Show PDF-AS Connector exception message
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java
index 712b0472..70a5a9d0 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java
+++ b/trunk/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));