From f898f4d7739c84ad539b1a33fafc03e78c5c25ab Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Thu, 23 Oct 2008 07:31:25 +0000 Subject: [PATCH] * minor: Generate model exception sometime not display on console. --- base/src/org/adempiere/util/ModelClassGenerator.java | 1 + base/src/org/adempiere/util/ModelInterfaceGenerator.java | 1 + 2 files changed, 2 insertions(+) diff --git a/base/src/org/adempiere/util/ModelClassGenerator.java b/base/src/org/adempiere/util/ModelClassGenerator.java index d22ecd8a8f..c84645a839 100644 --- a/base/src/org/adempiere/util/ModelClassGenerator.java +++ b/base/src/org/adempiere/util/ModelClassGenerator.java @@ -891,6 +891,7 @@ public class ModelClassGenerator catch (Exception ex) { log.log(Level.SEVERE, fileName, ex); + throw new RuntimeException(ex); } } diff --git a/base/src/org/adempiere/util/ModelInterfaceGenerator.java b/base/src/org/adempiere/util/ModelInterfaceGenerator.java index fff3d0f874..4ab859f8b3 100644 --- a/base/src/org/adempiere/util/ModelInterfaceGenerator.java +++ b/base/src/org/adempiere/util/ModelInterfaceGenerator.java @@ -468,6 +468,7 @@ public class ModelInterfaceGenerator { log.info(out.getAbsolutePath() + " - " + size + " kB"); } catch (Exception ex) { log.log(Level.SEVERE, fileName, ex); + throw new RuntimeException(ex); } }