cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r447013 - /cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/util/DomHelper.java
Date Sun, 17 Sep 2006 04:23:56 GMT
Author: vgritsenko
Date: Sat Sep 16 21:23:54 2006
New Revision: 447013

URL: http://svn.apache.org/viewvc?view=rev&rev=447013
Log:
fix throws clauses

Modified:
    cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/util/DomHelper.java

Modified: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/util/DomHelper.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/util/DomHelper.java?view=diff&rev=447013&r1=447012&r2=447013
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/util/DomHelper.java
(original)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/util/DomHelper.java
Sat Sep 16 21:23:54 2006
@@ -152,7 +152,8 @@
     public static Element getChildElement(Element element,
                                           String namespace,
                                           String localName,
-                                          boolean required) throws Exception {
+                                          boolean required)
+    throws FormsException {
         NodeList nodeList = element.getChildNodes();
         for (int i = 0; i < nodeList.getLength(); i++) {
             Node node = nodeList.item(i);
@@ -176,7 +177,7 @@
      * if the element has no such attribute.
      */
     public static String getAttribute(Element element, String attributeName)
-    throws Exception {
+    throws FormsException {
         String attrValue = element.getAttribute(attributeName);
         if (attrValue.length() == 0) {
             throw new FormsException("Required attribute '" + attributeName + "' is missing.",
@@ -201,7 +202,8 @@
     }
 
     public static int getAttributeAsInteger(Element element,
-                                            String attributeName) throws Exception {
+                                            String attributeName)
+    throws FormsException {
         String attrValue = getAttribute(element, attributeName);
         try {
             return Integer.parseInt(attrValue);
@@ -214,7 +216,8 @@
 
     public static int getAttributeAsInteger(Element element,
                                             String attributeName,
-                                            int defaultValue) throws Exception {
+                                            int defaultValue)
+    throws FormsException {
         String attrValue = element.getAttribute(attributeName);
         if (attrValue.length() == 0) {
             return defaultValue;



Mime
View raw message