]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
Fixed processing of runtime (Throwable) exceptions.
authorrkv <rkv@opencascade.com>
Tue, 25 Dec 2012 12:59:55 +0000 (12:59 +0000)
committerrkv <rkv@opencascade.com>
Tue, 25 Dec 2012 12:59:55 +0000 (12:59 +0000)
Workspace/Siman-Common/src/org/splat/log/AppLogger.java
Workspace/Siman/src/org/splat/simer/ExceptionAction.java

index 9062fff8e68af27460bbaeb73fed9be0e678c478..7349f4a728c17846d31f3797a088085b017f1457 100644 (file)
@@ -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);
        }
 
index ce18106e86159b8d1df0528c58a1c2e1f6e88094..13d8f095fe5a5881c53e779cbacd5c16a2cacb57 100644 (file)
@@ -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 {