jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r490594 - /jackrabbit/trunk/jackrabbit-core/src/main/javacc/sql/JCRSQL.jjt
Date Wed, 27 Dec 2006 23:28:07 GMT
Author: jukka
Date: Wed Dec 27 15:28:06 2006
New Revision: 490594

URL: http://svn.apache.org/viewvc?view=rev&rev=490594
Log:
JCR-688: Use NameException instead of subclasses where appropriate.

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/javacc/sql/JCRSQL.jjt

Modified: jackrabbit/trunk/jackrabbit-core/src/main/javacc/sql/JCRSQL.jjt
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/javacc/sql/JCRSQL.jjt?view=diff&rev=490594&r1=490593&r2=490594
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/javacc/sql/JCRSQL.jjt (original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/javacc/sql/JCRSQL.jjt Wed Dec 27 15:28:06 2006
@@ -41,11 +41,10 @@
  */
 package org.apache.jackrabbit.core.query.sql;
 
-import org.apache.jackrabbit.name.IllegalNameException;
+import org.apache.jackrabbit.name.NameException;
 import org.apache.jackrabbit.name.NamespaceResolver;
 import org.apache.jackrabbit.name.QName;
 import org.apache.jackrabbit.name.NameFormat;
-import org.apache.jackrabbit.name.UnknownPrefixException;
 import org.apache.jackrabbit.core.query.QueryConstants;
 
 public class JCRSQLParser {
@@ -564,9 +563,7 @@
       {
         try {
           jjtThis.setName(NameFormat.parse(t.image, resolver));
-        } catch (IllegalNameException e) {
-          throw new ParseException(e.getMessage());
-        } catch (UnknownPrefixException e) {
+        } catch (NameException e) {
           throw new ParseException(e.getMessage());
         }
       }
@@ -575,9 +572,7 @@
       {
         try {
           jjtThis.setName(NameFormat.parse(t.image.substring(1, t.image.length()-1), resolver));
-        } catch (IllegalNameException e) {
-          throw new ParseException(e.getMessage());
-        } catch (UnknownPrefixException e) {
+        } catch (NameException e) {
           throw new ParseException(e.getMessage());
         }
       }
@@ -602,9 +597,7 @@
       {
         try {
           jjtThis.setName(NameFormat.parse(t.image, resolver));
-        } catch (IllegalNameException e) {
-          throw new ParseException(e.getMessage());
-        } catch (UnknownPrefixException e) {
+        } catch (NameException e) {
           throw new ParseException(e.getMessage());
         }
       }



Mime
View raw message