Related to Issue 36651. Code Review changes. Renamed exception
authorDavid Miguelez <david.miguelez@openbravo.com>
Tue, 12 Jun 2018 10:00:05 +0200
changeset 34189 30563bebf57c
parent 34188 cd3262c908aa
child 34190 e050974318af
child 34191 81a20697ebeb
Related to Issue 36651. Code Review changes. Renamed exception
variable names
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java	Fri Jun 08 13:56:01 2018 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java	Tue Jun 12 10:00:05 2018 +0200
@@ -1137,11 +1137,12 @@
           OBContext.restorePreviousMode();
         }
       }
-    } catch (final OBException e) {
-      throw e;
-    } catch (final Exception e) {
-      log4j.error(e.getMessage(), e);
-      msg = OBMessageUtils.translateError(FIN_Utility.getExceptionMessage(e)).getMessage();
+    } catch (final OBException obException) {
+      throw obException;
+    } catch (final Exception genericException) {
+      log4j.error(genericException.getMessage(), genericException);
+      msg = OBMessageUtils.translateError(FIN_Utility.getExceptionMessage(genericException))
+          .getMessage();
       throw new OBException(msg);
     }
   }