velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbris...@apache.org
Subject svn commit: r1866609 [2/2] - in /velocity/engine/trunk/velocity-engine-core/src/main: java/org/apache/velocity/ java/org/apache/velocity/app/event/ java/org/apache/velocity/exception/ java/org/apache/velocity/runtime/ java/org/apache/velocity/runtime/d...
Date Sun, 08 Sep 2019 10:42:47 GMT
Modified: velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/JarResourceLoader.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/JarResourceLoader.java?rev=1866609&r1=1866608&r2=1866609&view=diff
==============================================================================
--- velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/JarResourceLoader.java
(original)
+++ velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/JarResourceLoader.java
Sun Sep  8 10:42:47 2019
@@ -230,7 +230,7 @@ public class JarResourceLoader extends R
                     }
                     String msg = "JAR resource error: Exception while loading " + source;
                     log.error(msg, e);
-                    throw new VelocityException(msg, e);
+                    throw new VelocityException(msg, e, rsvc.getLogContext().getStackTrace());
                 }
             }
         }

Modified: velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/StringResourceLoader.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/StringResourceLoader.java?rev=1866609&r1=1866608&r2=1866609&view=diff
==============================================================================
--- velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/StringResourceLoader.java
(original)
+++ velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/StringResourceLoader.java
Sun Sep  8 10:42:47 2019
@@ -389,7 +389,7 @@ public class StringResourceLoader extend
                 }
                 catch (IOException ioe) {}
             }
-            throw new VelocityException("Could not convert String using encoding " + resource.getEncoding(),
ue);
+            throw new VelocityException("Could not convert String using encoding " + resource.getEncoding(),
ue, rsvc.getLogContext().getStackTrace());
         }
     }
 

Modified: velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/URLResourceLoader.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/URLResourceLoader.java?rev=1866609&r1=1866608&r2=1866609&view=diff
==============================================================================
--- velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/URLResourceLoader.java
(original)
+++ velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/URLResourceLoader.java
Sun Sep  8 10:42:47 2019
@@ -195,7 +195,7 @@ public class URLResourceLoader extends R
             // the file is not reachable at its previous address
             String msg = "URLResourceLoader: '"+name+"' is no longer reachable at '"+root+"'";
             log.error(msg, ioe);
-            throw new ResourceNotFoundException(msg, ioe);
+            throw new ResourceNotFoundException(msg, ioe, rsvc.getLogContext().getStackTrace());
         }
     }
 

Modified: velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/util/introspection/UberspectImpl.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/util/introspection/UberspectImpl.java?rev=1866609&r1=1866608&r2=1866609&view=diff
==============================================================================
--- velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/util/introspection/UberspectImpl.java
(original)
+++ velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/util/introspection/UberspectImpl.java
Sun Sep  8 10:42:47 2019
@@ -171,7 +171,7 @@ public class UberspectImpl implements Ub
                         + "; Velocity is not initialized correctly.";
 
                 log.error(err);
-                throw new VelocityException(err);
+                throw new VelocityException(err, null, rsvc.getLogContext().getStackTrace());
             }
             else
             {
@@ -254,7 +254,7 @@ public class UberspectImpl implements Ub
                     catch (Exception e)
                     {
                         throw new VelocityException("Error invoking the method 'iterator'
on class '"
-                            + obj.getClass().getName() +"'", e);
+                            + obj.getClass().getName() +"'", e, rsvc.getLogContext().getStackTrace());
                     }
                 }
                 else

Modified: velocity/engine/trunk/velocity-engine-core/src/main/parser/Parser.jjt
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/velocity-engine-core/src/main/parser/Parser.jjt?rev=1866609&r1=1866608&r2=1866609&view=diff
==============================================================================
--- velocity/engine/trunk/velocity-engine-core/src/main/parser/Parser.jjt (original)
+++ velocity/engine/trunk/velocity-engine-core/src/main/parser/Parser.jjt Sun Sep  8 10:42:47
2019
@@ -284,7 +284,7 @@ public class ${parser.basename}Parser im
         {
             String msg = template.getName() + ": " + e.getMessage();
             log.error(msg, e);
-            throw new VelocityException(msg, e);
+            throw new VelocityException(msg, e, getRuntimeServices().getLogContext().getStackTrace());
         }
 
         currentTemplate = null;



Mime
View raw message