You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by he...@apache.org on 2005/10/30 14:40:26 UTC

svn commit: r329564 - /jakarta/velocity/core/trunk/src/java/org/apache/velocity/exception/ExtendedParseException.java

Author: henning
Date: Sun Oct 30 05:40:23 2005
New Revision: 329564

URL: http://svn.apache.org/viewcvs?rev=329564&view=rev
Log:
Forgot to add the interface implemented by TemplateParseException and MacroParseException


Added:
    jakarta/velocity/core/trunk/src/java/org/apache/velocity/exception/ExtendedParseException.java   (with props)

Added: jakarta/velocity/core/trunk/src/java/org/apache/velocity/exception/ExtendedParseException.java
URL: http://svn.apache.org/viewcvs/jakarta/velocity/core/trunk/src/java/org/apache/velocity/exception/ExtendedParseException.java?rev=329564&view=auto
==============================================================================
--- jakarta/velocity/core/trunk/src/java/org/apache/velocity/exception/ExtendedParseException.java (added)
+++ jakarta/velocity/core/trunk/src/java/org/apache/velocity/exception/ExtendedParseException.java Sun Oct 30 05:40:23 2005
@@ -0,0 +1,45 @@
+package org.apache.velocity.exception;
+
+/*
+ * Copyright 2000-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.
+ */
+
+/**
+ * All Exceptions that can provide additional information about the place
+ * where the error happened (template name, column and line number) can 
+ * implement this interface and the ParseErrorException will then be able
+ * to deal with this information.
+ *
+ * @author <a href="hps@intermeta.de">Henning P. Schmiedehausen</a>
+ * @version $Id$
+ */
+public interface ExtendedParseException
+{
+    /**
+     * returns the Template name where this exception occured.
+     */
+    String getTemplateName();
+
+    /**
+     * returns the line number where this exception occured.
+     */
+    int getLineNumber();
+
+    /**
+     * returns the column number where this exception occured.
+     */
+    int getColumnNumber();
+}
+

Propchange: jakarta/velocity/core/trunk/src/java/org/apache/velocity/exception/ExtendedParseException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jakarta/velocity/core/trunk/src/java/org/apache/velocity/exception/ExtendedParseException.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision



---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org