db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r419292 - /db/torque/generator/trunk/src/java/org/apache/torque/engine/database/transform/XmlToAppData.java
Date Wed, 05 Jul 2006 17:30:48 GMT
Author: tfischer
Date: Wed Jul  5 10:30:48 2006
New Revision: 419292

URL: http://svn.apache.org/viewvc?rev=419292&view=rev
Log:
added information about the line and column numbers to new exception if a sax exception occurs

Modified:
    db/torque/generator/trunk/src/java/org/apache/torque/engine/database/transform/XmlToAppData.java

Modified: db/torque/generator/trunk/src/java/org/apache/torque/engine/database/transform/XmlToAppData.java
URL: http://svn.apache.org/viewvc/db/torque/generator/trunk/src/java/org/apache/torque/engine/database/transform/XmlToAppData.java?rev=419292&r1=419291&r2=419292&view=diff
==============================================================================
--- db/torque/generator/trunk/src/java/org/apache/torque/engine/database/transform/XmlToAppData.java
(original)
+++ db/torque/generator/trunk/src/java/org/apache/torque/engine/database/transform/XmlToAppData.java
Wed Jul  5 10:30:48 2006
@@ -167,6 +167,16 @@
                 br.close();
             }
         }
+        catch (SAXParseException e)
+        {
+            throw new EngineException("Sax error on line " 
+                        + e.getLineNumber()
+                        + " column "
+                        + e.getColumnNumber()
+                        + " : " 
+                        + e.getMessage(),
+                    e);
+        }
         catch (Exception e)
         {
             throw new EngineException(e);



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message