From 32a55fe960a609e0d4f25e408d1f56e2204f02db Mon Sep 17 00:00:00 2001 From: tkellner Date: Tue, 2 Oct 2012 19:40:16 +0000 Subject: set / log errormessages in some remaining places git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1144 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../src/main/java/at/gv/egiz/bku/local/stal/ExclusiveAccessSTAL.java | 2 ++ .../main/java/at/gv/egiz/bku/local/stal/LocalSignRequestHandler.java | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'BKULocal/src/main') diff --git a/BKULocal/src/main/java/at/gv/egiz/bku/local/stal/ExclusiveAccessSTAL.java b/BKULocal/src/main/java/at/gv/egiz/bku/local/stal/ExclusiveAccessSTAL.java index 8562677c..ef8addc0 100644 --- a/BKULocal/src/main/java/at/gv/egiz/bku/local/stal/ExclusiveAccessSTAL.java +++ b/BKULocal/src/main/java/at/gv/egiz/bku/local/stal/ExclusiveAccessSTAL.java @@ -71,11 +71,13 @@ public class ExclusiveAccessSTAL implements STAL { // time out log.info("Timeout while waiting for exclusive access to STAL."); ErrorResponse response = new ErrorResponse(6000); + response.setErrorMessage("Timeout while waiting for exclusive access to STAL."); return Collections.singletonList((STALResponse) response); } } catch (InterruptedException e) { // interrupted ErrorResponse response = new ErrorResponse(6000); + response.setErrorMessage("Interrupted: " + e); return Collections.singletonList((STALResponse) response); } diff --git a/BKULocal/src/main/java/at/gv/egiz/bku/local/stal/LocalSignRequestHandler.java b/BKULocal/src/main/java/at/gv/egiz/bku/local/stal/LocalSignRequestHandler.java index 3ced30a6..c4855400 100644 --- a/BKULocal/src/main/java/at/gv/egiz/bku/local/stal/LocalSignRequestHandler.java +++ b/BKULocal/src/main/java/at/gv/egiz/bku/local/stal/LocalSignRequestHandler.java @@ -62,7 +62,9 @@ public class LocalSignRequestHandler extends SignRequestHandler { return super.handleRequest(request); } else { log.error("Got unexpected STAL request: {}.", request); - return new ErrorResponse(1000); + ErrorResponse err = new ErrorResponse(1000); + err.setErrorMessage("Got unexpected STAL request: " + request); + return err; } -- cgit v1.2.3