diff options
author | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2012-09-21 15:50:48 +0000 |
---|---|---|
committer | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2012-09-21 15:50:48 +0000 |
commit | 583630aa62be7f80d1e4904d5237e6836e8cdbe8 (patch) | |
tree | 2e74f55acc01c680fde18bdf1ac6d62cf3b3fe7f /bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/Signature.java | |
parent | 106f1a93d634af44da934aa4a61ef5bbc4426ae3 (diff) | |
download | mocca-583630aa62be7f80d1e4904d5237e6836e8cdbe8.tar.gz mocca-583630aa62be7f80d1e4904d5237e6836e8cdbe8.tar.bz2 mocca-583630aa62be7f80d1e4904d5237e6836e8cdbe8.zip |
Create (client) & Log (server) STAL error messages
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1136 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/Signature.java')
-rw-r--r-- | bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/Signature.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/Signature.java b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/Signature.java index e7f04457..8cc6caf2 100644 --- a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/Signature.java +++ b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/Signature.java @@ -434,12 +434,13 @@ public class Signature { Throwable cause = e.getCause(); while (cause != null) { if (cause instanceof STALSignatureException) { - if (((STALSignatureException) cause).getCause() instanceof SLViewerException) { - throw (SLViewerException) ((STALSignatureException) cause).getCause(); + STALSignatureException stalCause = (STALSignatureException) cause; + if (stalCause.getCause() instanceof SLViewerException) { + throw (SLViewerException) stalCause.getCause(); } - int errorCode = ((STALSignatureException) cause).getErrorCode(); + int errorCode = stalCause.getErrorCode(); SLCommandException commandException = new SLCommandException(errorCode); - log.info("Failed to sign signature.", e); + log.info("Failed to sign signature: {}", stalCause.getMessage(), e); throw commandException; } else { cause = cause.getCause(); |