You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by re...@apache.org on 2008/08/06 22:29:16 UTC
svn commit: r683395 -
/cocoon/whiteboard/corona/trunk/corona-sitemap/src/main/java/org/apache/cocoon/corona/sitemap/InvocationImpl.java
Author: reinhard
Date: Wed Aug 6 13:29:15 2008
New Revision: 683395
URL: http://svn.apache.org/viewvc?rev=683395&view=rev
Log:
throw self-explanatory custom exception if an expression language is not available
Modified:
cocoon/whiteboard/corona/trunk/corona-sitemap/src/main/java/org/apache/cocoon/corona/sitemap/InvocationImpl.java
Modified: cocoon/whiteboard/corona/trunk/corona-sitemap/src/main/java/org/apache/cocoon/corona/sitemap/InvocationImpl.java
URL: http://svn.apache.org/viewvc/cocoon/whiteboard/corona/trunk/corona-sitemap/src/main/java/org/apache/cocoon/corona/sitemap/InvocationImpl.java?rev=683395&r1=683394&r2=683395&view=diff
==============================================================================
--- cocoon/whiteboard/corona/trunk/corona-sitemap/src/main/java/org/apache/cocoon/corona/sitemap/InvocationImpl.java (original)
+++ cocoon/whiteboard/corona/trunk/corona-sitemap/src/main/java/org/apache/cocoon/corona/sitemap/InvocationImpl.java Wed Aug 6 13:29:15 2008
@@ -323,8 +323,8 @@
final String language = matcher.group(1);
final LanguageInterpreter languageInterpreter = this.getLanguageInterpreter(language);
if (languageInterpreter == null) {
- throw new IllegalArgumentException("Could not resolve parameter '" + parameter + "'. The language '"
- + language + "' is not supported.");
+ throw new UnsupportedExpressionLanguageException("Could not resolve parameter '" + parameter
+ + "'. The language '" + language + "' is not supported.");
}
final String variable = matcher.group(2);
@@ -369,6 +369,13 @@
this.objectModel = objectModel;
}
+ public class UnsupportedExpressionLanguageException extends RuntimeException {
+
+ public UnsupportedExpressionLanguageException(String msg) {
+ super(msg);
+ }
+ }
+
public class VariableNotFoundException extends RuntimeException {
public VariableNotFoundException(String msg) {