You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by de...@apache.org on 2018/05/08 12:47:54 UTC
[myfaces] 02/07: Better parser exception handling in unit test
class AbstractClassElementTestCase
This is an automated email from the ASF dual-hosted git repository.
deki pushed a commit to branch 1_1_5
in repository https://gitbox.apache.org/repos/asf/myfaces.git
commit 0f052b8d871b622f9a6998a0055938930b4c8c1a
Author: Manfred Geiler <ma...@apache.org>
AuthorDate: Tue Feb 6 17:40:50 2007 +0000
Better parser exception handling in unit test class AbstractClassElementTestCase
---
.../org/apache/myfaces/test/AbstractClassElementTestCase.java | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/impl/src/test/java/org/apache/myfaces/test/AbstractClassElementTestCase.java b/impl/src/test/java/org/apache/myfaces/test/AbstractClassElementTestCase.java
index 565e678..a9fa295 100644
--- a/impl/src/test/java/org/apache/myfaces/test/AbstractClassElementTestCase.java
+++ b/impl/src/test/java/org/apache/myfaces/test/AbstractClassElementTestCase.java
@@ -77,7 +77,14 @@ public abstract class AbstractClassElementTestCase extends TestCase
if(is == null)
throw new Exception("Could not locate resource :" + resourceName);
- parser.parse(is, handler);
+ try
+ {
+ parser.parse(is, handler);
+ }
+ catch (Exception e)
+ {
+ throw new Exception("Error parsing " + resourceName, e);
+ }
}
--
To stop receiving notification emails like this one, please contact
deki@apache.org.