From: rkv Date: Tue, 25 Dec 2012 12:59:55 +0000 (+0000) Subject: Fixed processing of runtime (Throwable) exceptions. X-Git-Tag: Root_Delivery2_2013_04_22~194 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a91cdf7c7dc89a73ee5dc5c550ffabdfc211178e;p=tools%2Fsiman.git Fixed processing of runtime (Throwable) exceptions. --- 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 {