[prev in list] [next in list] [prev in thread] [next in thread]
List: velocity-dev
Subject: cvs commit: jakarta-velocity/src/java/org/apache/velocity/servlet VelocityServlet.java
From: dlr () apache ! org
Date: 2002-09-06 0:09:09
[Download RAW message or body]
dlr 2002/09/05 17:09:09
Modified: src/java/org/apache/velocity/servlet VelocityServlet.java
Log:
initVelocity(ServletConfig): For better diagnostics, use rootCause parameter when \
throwing ServletException.
Revision Changes Path
1.48 +2 -6 \
jakarta-velocity/src/java/org/apache/velocity/servlet/VelocityServlet.java
Index: VelocityServlet.java
===================================================================
RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/servlet/VelocityServlet.java,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -u -r1.47 -r1.48
--- VelocityServlet.java 3 Jul 2002 21:14:59 -0000 1.47
+++ VelocityServlet.java 6 Sep 2002 00:09:08 -0000 1.48
@@ -212,8 +212,6 @@
defaultContentType = RuntimeSingleton.getString( CONTENT_TYPE, \
DEFAULT_CONTENT_TYPE);
encoding = RuntimeSingleton.getString( RuntimeSingleton.OUTPUT_ENCODING,
DEFAULT_OUTPUT_ENCODING);
-
- return;
}
/**
@@ -242,10 +240,8 @@
}
catch( Exception e )
{
- throw new ServletException("Error initializing Velocity: " + e);
+ throw new ServletException("Error initializing Velocity: " + e, e);
}
-
- return;
}
/**
--
To unsubscribe, e-mail: <mailto:velocity-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-dev-help@jakarta.apache.org>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic