From a91cdf7c7dc89a73ee5dc5c550ffabdfc211178e Mon Sep 17 00:00:00 2001 From: rkv Date: Tue, 25 Dec 2012 12:59:55 +0000 Subject: [PATCH] Fixed processing of runtime (Throwable) exceptions. --- Workspace/Siman-Common/src/org/splat/log/AppLogger.java | 2 +- Workspace/Siman/src/org/splat/simer/ExceptionAction.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Workspace/Siman-Common/src/org/splat/log/AppLogger.java b/Workspace/Siman-Common/src/org/splat/log/AppLogger.java index 9062fff..7349f4a 100644 --- a/Workspace/Siman-Common/src/org/splat/log/AppLogger.java +++ b/Workspace/Siman-Common/src/org/splat/log/AppLogger.java @@ -138,7 +138,7 @@ public class AppLogger { * @param msg the message * @param exception the exception */ - public void errorMsg(final String msg, final Exception exception) { + public void errorMsg(final String msg, final Throwable exception) { _logger.error(msg, exception); } diff --git a/Workspace/Siman/src/org/splat/simer/ExceptionAction.java b/Workspace/Siman/src/org/splat/simer/ExceptionAction.java index ce18106..13d8f09 100644 --- a/Workspace/Siman/src/org/splat/simer/ExceptionAction.java +++ b/Workspace/Siman/src/org/splat/simer/ExceptionAction.java @@ -106,7 +106,7 @@ public class ExceptionAction extends ActionSupport { } Throwable cause = exc.getCause(); if (null != cause) { - LOG.errorMsg(cause.getMessage(), (Exception) cause); + LOG.errorMsg(cause.getMessage(), cause); msg.append(" ").append(cause.getMessage()); } try { -- 2.39.2