Author: dmitri
Date: Sat Oct 29 14:08:36 2005
New Revision: 329482

URL: http://svn.apache.org/viewcvs?rev=329482&view=rev
Log:
Introduced specialized exceptions

Added:
    
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathAbstractFactoryException.java
    
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathFunctionNotFoundException.java
    
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathInvalidAccessException.java
    
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathInvalidSyntaxException.java
    
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathNotFoundException.java
    
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathTypeConversionException.java

Added: 
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathAbstractFactoryException.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathAbstractFactoryException.java?rev=329482&view=auto
==============================================================================
--- 
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathAbstractFactoryException.java
 (added)
+++ 
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathAbstractFactoryException.java
 Sat Oct 29 14:08:36 2005
@@ -0,0 +1,33 @@
+/*

+ * Copyright 1999-2004 The Apache Software Foundation

+ *

+ * Licensed under the Apache License, Version 2.0 (the "License");

+ * you may not use this file except in compliance with the License.

+ * You may obtain a copy of the License at

+ *

+ *     http://www.apache.org/licenses/LICENSE-2.0

+ *

+ * Unless required by applicable law or agreed to in writing, software

+ * distributed under the License is distributed on an "AS IS" BASIS,

+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ * See the License for the specific language governing permissions and

+ * limitations under the License.

+ */

+package org.apache.commons.jxpath;

+

+/**

+ * Thrown when an AbstractFactory cannot generate an object for the requested

+ * path.

+ * 

+ * @author Dmitri Plotnikov

+ * @version $Revision: 155422 $ $Date: 2005-02-26 08:07:46 -0500 (Sat, 26 Feb 
2005) $

+ */

+

+public class JXPathAbstractFactoryException extends JXPathException {

+

+    private static final long serialVersionUID = -4403564377958943239L;

+

+    public JXPathAbstractFactoryException(String message) {

+        super(message);

+    }    

+}
\ No newline at end of file

Added: 
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathFunctionNotFoundException.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathFunctionNotFoundException.java?rev=329482&view=auto
==============================================================================
--- 
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathFunctionNotFoundException.java
 (added)
+++ 
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathFunctionNotFoundException.java
 Sat Oct 29 14:08:36 2005
@@ -0,0 +1,32 @@
+/*

+ * Copyright 1999-2004 The Apache Software Foundation

+ *

+ * Licensed under the Apache License, Version 2.0 (the "License");

+ * you may not use this file except in compliance with the License.

+ * You may obtain a copy of the License at

+ *

+ *     http://www.apache.org/licenses/LICENSE-2.0

+ *

+ * Unless required by applicable law or agreed to in writing, software

+ * distributed under the License is distributed on an "AS IS" BASIS,

+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ * See the License for the specific language governing permissions and

+ * limitations under the License.

+ */

+package org.apache.commons.jxpath;

+

+/**

+ * Thrown when JXPath encounters an unknown extension function.

+ *

+ * @author Dmitri Plotnikov

+ * @version $Revision: 155422 $ $Date: 2005-02-26 08:07:46 -0500 (Sat, 26 Feb 
2005) $

+ */

+

+public class JXPathFunctionNotFoundException extends JXPathException {

+

+    private static final long serialVersionUID = -8875537628056117241L;

+    

+    public JXPathFunctionNotFoundException(String message) {

+        super(message);

+    }

+}
\ No newline at end of file

Added: 
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathInvalidAccessException.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathInvalidAccessException.java?rev=329482&view=auto
==============================================================================
--- 
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathInvalidAccessException.java
 (added)
+++ 
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathInvalidAccessException.java
 Sat Oct 29 14:08:36 2005
@@ -0,0 +1,36 @@
+/*

+ * Copyright 1999-2004 The Apache Software Foundation

+ *

+ * Licensed under the Apache License, Version 2.0 (the "License");

+ * you may not use this file except in compliance with the License.

+ * You may obtain a copy of the License at

+ *

+ *     http://www.apache.org/licenses/LICENSE-2.0

+ *

+ * Unless required by applicable law or agreed to in writing, software

+ * distributed under the License is distributed on an "AS IS" BASIS,

+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ * See the License for the specific language governing permissions and

+ * limitations under the License.

+ */

+package org.apache.commons.jxpath;

+

+/**

+ * Similary to InvocationTargetException in that it is thrown when

+ * JXPath cannot access properties, collection etc on the target object model.

+ *

+ * @author Dmitri Plotnikov

+ * @version $Revision: 155422 $ $Date: 2005-02-26 08:07:46 -0500 (Sat, 26 Feb 
2005) $

+ */

+public class JXPathInvalidAccessException extends JXPathException {

+

+    private static final long serialVersionUID = -8875537628056117241L;

+    

+    public JXPathInvalidAccessException(String message) {

+        super(message);

+    }

+    

+    public JXPathInvalidAccessException(String message, Throwable ex) {

+        super(message, ex);

+    }

+}
\ No newline at end of file

Added: 
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathInvalidSyntaxException.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathInvalidSyntaxException.java?rev=329482&view=auto
==============================================================================
--- 
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathInvalidSyntaxException.java
 (added)
+++ 
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathInvalidSyntaxException.java
 Sat Oct 29 14:08:36 2005
@@ -0,0 +1,31 @@
+/*

+ * Copyright 1999-2004 The Apache Software Foundation

+ *

+ * Licensed under the Apache License, Version 2.0 (the "License");

+ * you may not use this file except in compliance with the License.

+ * You may obtain a copy of the License at

+ *

+ *     http://www.apache.org/licenses/LICENSE-2.0

+ *

+ * Unless required by applicable law or agreed to in writing, software

+ * distributed under the License is distributed on an "AS IS" BASIS,

+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ * See the License for the specific language governing permissions and

+ * limitations under the License.

+ */

+package org.apache.commons.jxpath;

+

+/**

+ * Thrown when JXPath cannot parse a supplied XPath.

+ *

+ * @author Dmitri Plotnikov

+ * @version $Revision: 155422 $ $Date: 2005-02-26 08:07:46 -0500 (Sat, 26 Feb 
2005) $

+ */

+

+public class JXPathInvalidSyntaxException extends JXPathException {

+    private static final long serialVersionUID = 504555366032561816L;

+

+    public JXPathInvalidSyntaxException(String message) {

+        super(message);

+    }

+}
\ No newline at end of file

Added: 
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathNotFoundException.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathNotFoundException.java?rev=329482&view=auto
==============================================================================
--- 
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathNotFoundException.java
 (added)
+++ 
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathNotFoundException.java
 Sat Oct 29 14:08:36 2005
@@ -0,0 +1,33 @@
+/*

+ * Copyright 1999-2004 The Apache Software Foundation

+ *

+ * Licensed under the Apache License, Version 2.0 (the "License");

+ * you may not use this file except in compliance with the License.

+ * You may obtain a copy of the License at

+ *

+ *     http://www.apache.org/licenses/LICENSE-2.0

+ *

+ * Unless required by applicable law or agreed to in writing, software

+ * distributed under the License is distributed on an "AS IS" BASIS,

+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ * See the License for the specific language governing permissions and

+ * limitations under the License.

+ */

+package org.apache.commons.jxpath;

+

+/**

+ * Thrown when JXPath cannot find a requested path.

+ *

+ * @author Dmitri Plotnikov

+ * @version $Revision: 155422 $ $Date: 2005-02-26 08:07:46 -0500 (Sat, 26 Feb 
2005) $

+ */

+

+public class JXPathNotFoundException extends JXPathException {

+

+    private static final long serialVersionUID = -8875537628056117241L;

+

+    public JXPathNotFoundException(String message) {

+        super(message);

+    }

+

+}
\ No newline at end of file

Added: 
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathTypeConversionException.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathTypeConversionException.java?rev=329482&view=auto
==============================================================================
--- 
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathTypeConversionException.java
 (added)
+++ 
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/JXPathTypeConversionException.java
 Sat Oct 29 14:08:36 2005
@@ -0,0 +1,36 @@
+/*

+ * Copyright 1999-2004 The Apache Software Foundation

+ *

+ * Licensed under the Apache License, Version 2.0 (the "License");

+ * you may not use this file except in compliance with the License.

+ * You may obtain a copy of the License at

+ *

+ *     http://www.apache.org/licenses/LICENSE-2.0

+ *

+ * Unless required by applicable law or agreed to in writing, software

+ * distributed under the License is distributed on an "AS IS" BASIS,

+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ * See the License for the specific language governing permissions and

+ * limitations under the License.

+ */

+package org.apache.commons.jxpath;

+

+/**

+ * Thrown when JXPath cannot convert supplied value to the required type.

+ * 

+ * @author Dmitri Plotnikov

+ * @version $Revision: 155422 $ $Date: 2005-02-26 08:07:46 -0500 (Sat, 26 Feb 
2005) $

+ */

+

+public class JXPathTypeConversionException extends JXPathException {

+

+    private static final long serialVersionUID = -4403564377958943239L;

+

+    public JXPathTypeConversionException(String message) {

+        super(message);

+    }

+

+    public JXPathTypeConversionException(String message, Exception ex) {

+        super(message, ex);

+    }

+}
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to