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 19:20:18 UTC
svn commit: r292483 - in /cocoon/trunk/src/java/org/apache/cocoon:
Constants.java ConstantsInitializationException.java
sitemap/ContentAggregator.java
Author: bloritsch
Date: Thu Sep 29 10:20:10 2005
New Revision: 292483
URL: http://svn.apache.org/viewcvs?rev=292483&view=rev
Log:
start introducing known exceptions
Added:
cocoon/trunk/src/java/org/apache/cocoon/ConstantsInitializationException.java
Modified:
cocoon/trunk/src/java/org/apache/cocoon/Constants.java
cocoon/trunk/src/java/org/apache/cocoon/sitemap/ContentAggregator.java
Modified: cocoon/trunk/src/java/org/apache/cocoon/Constants.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/Constants.java?rev=292483&r1=292482&r2=292483&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/Constants.java (original)
+++ cocoon/trunk/src/java/org/apache/cocoon/Constants.java Thu Sep 29 10:20:10 2005
@@ -41,11 +41,11 @@
try {
final InputStream is = Constants.class.getClassLoader().getResourceAsStream(PROPS_FILE);
if ( null == is ) {
- throw new RuntimeException("Cocoon cannot find required properties from " + PROPS_FILE);
+ throw new ConstantsInitializationException("Cocoon cannot find required properties from " + PROPS_FILE);
}
properties.load(is);
} catch (IOException ioe) {
- throw new RuntimeException("Cocoon cannot load required properties from " + PROPS_FILE);
+ throw new ConstantsInitializationException("Cocoon cannot load required properties from " + PROPS_FILE, ioe);
}
}
Added: cocoon/trunk/src/java/org/apache/cocoon/ConstantsInitializationException.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/ConstantsInitializationException.java?rev=292483&view=auto
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/ConstantsInitializationException.java (added)
+++ cocoon/trunk/src/java/org/apache/cocoon/ConstantsInitializationException.java Thu Sep 29 10:20:10 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;
+
+import org.apache.avalon.framework.CascadingRuntimeException;
+
+public final class ConstantsInitializationException extends CascadingRuntimeException
+{
+ public ConstantsInitializationException(String message)
+ {
+ super(message, null);
+ }
+
+ public ConstantsInitializationException(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+}
Modified: cocoon/trunk/src/java/org/apache/cocoon/sitemap/ContentAggregator.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/sitemap/ContentAggregator.java?rev=292483&r1=292482&r2=292483&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/sitemap/ContentAggregator.java (original)
+++ cocoon/trunk/src/java/org/apache/cocoon/sitemap/ContentAggregator.java Thu Sep 29 10:20:10 2005
@@ -18,7 +18,7 @@
import org.apache.cocoon.generation.Generator;
/**
- * A content aggregator is a special generator used to implement <map:aggregate>.
+ * A content aggregator is a special generator used to implement <map:aggregate>.
* It combines several parts into one big XML document which is streamed
* into the pipeline.
*