aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeConstants.java2
-rw-r--r--velocity-engine-core/src/main/java/org/apache/velocity/runtime/directive/Include.java1
2 files changed, 3 insertions, 0 deletions
diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeConstants.java b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeConstants.java
index 28682cd6..274d5158 100644
--- a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeConstants.java
+++ b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeConstants.java
@@ -88,12 +88,14 @@ public interface RuntimeConstants extends DeprecatedRuntimeConstants
/**
* Starting tag for error messages triggered by passing a parameter not allowed in the #include directive. Only string literals,
* and references are allowed.
+ * @deprecated if/how errors are displayed is not the concern of the engine, which should throw in all cases
*/
String ERRORMSG_START = "directive.include.output_error_start";
/**
* Ending tag for error messages triggered by passing a parameter not allowed in the #include directive. Only string literals,
* and references are allowed.
+ * @deprecated if/how errors are displayed is not the concern of the engine, which should throw in all cases
*/
String ERRORMSG_END = "directive.include.output_error_end";
diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/directive/Include.java b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/directive/Include.java
index 86f62639..dd9c8a8a 100644
--- a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/directive/Include.java
+++ b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/directive/Include.java
@@ -287,6 +287,7 @@ public class Include extends InputBase
* @param writer
* @param msg
* @throws IOException
+ * @deprecated if/how errors are displayed is not the concern of the engine, which should throw in all cases
*/
private void outputErrorToStream( Writer writer, String msg )
throws IOException