You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by bl...@apache.org on 2005/09/29 20:08:36 UTC

svn commit: r292496 - in /cocoon/trunk/src/java/org/apache/cocoon/components/sax: DocumentLocatorException.java XMLByteStreamCompiler.java

Author: bloritsch
Date: Thu Sep 29 11:08:33 2005
New Revision: 292496

URL: http://svn.apache.org/viewcvs?rev=292496&view=rev
Log:
add document locator exception

Added:
    cocoon/trunk/src/java/org/apache/cocoon/components/sax/DocumentLocatorException.java
Modified:
    cocoon/trunk/src/java/org/apache/cocoon/components/sax/XMLByteStreamCompiler.java

Added: cocoon/trunk/src/java/org/apache/cocoon/components/sax/DocumentLocatorException.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/components/sax/DocumentLocatorException.java?rev=292496&view=auto
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/components/sax/DocumentLocatorException.java (added)
+++ cocoon/trunk/src/java/org/apache/cocoon/components/sax/DocumentLocatorException.java Thu Sep 29 11:08:33 2005
@@ -0,0 +1,31 @@
+/*
+ * Copyright 1999-2005 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.cocoon.components.sax;
+
+import org.apache.avalon.framework.CascadingRuntimeException;
+
+public final class DocumentLocatorException extends CascadingRuntimeException
+{
+    public DocumentLocatorException(String message)
+    {
+        super(message, null);
+    }
+
+    public DocumentLocatorException(String message, Throwable cause)
+    {
+        super(message, cause);
+    }
+}

Modified: cocoon/trunk/src/java/org/apache/cocoon/components/sax/XMLByteStreamCompiler.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/components/sax/XMLByteStreamCompiler.java?rev=292496&r1=292495&r2=292496&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/components/sax/XMLByteStreamCompiler.java (original)
+++ cocoon/trunk/src/java/org/apache/cocoon/components/sax/XMLByteStreamCompiler.java Thu Sep 29 11:08:33 2005
@@ -16,7 +16,6 @@
 package org.apache.cocoon.components.sax;
 
 import org.apache.avalon.excalibur.pool.Recyclable;
-import org.apache.avalon.framework.CascadingRuntimeException;
 import org.xml.sax.Attributes;
 import org.xml.sax.Locator;
 import org.xml.sax.SAXException;
@@ -167,7 +166,7 @@
             this.write(locator.getLineNumber());
             this.write(locator.getColumnNumber());
         } catch (Exception e) {
-             throw new CascadingRuntimeException("Error while handling locator", e);
+             throw new DocumentLocatorException("Error while handling locator", e);
         }
     }