You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2002/07/05 17:20:49 UTC
cvs commit: xml-cocoon2/src/scratchpad/src/org/apache/cocoon/sunshine SunShine.java
cziegeler 2002/07/05 08:20:49
Modified: src/scratchpad/src/org/apache/cocoon/sunshine Tag:
cocoon_2_0_3_branch SunShine.java
Log:
Better error messages
Revision Changes Path
No revision
No revision
1.5.2.1 +7 -7 xml-cocoon2/src/scratchpad/src/org/apache/cocoon/sunshine/Attic/SunShine.java
Index: SunShine.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/sunshine/Attic/SunShine.java,v
retrieving revision 1.5
retrieving revision 1.5.2.1
diff -u -r1.5 -r1.5.2.1
--- SunShine.java 2 Apr 2002 14:23:44 -0000 1.5
+++ SunShine.java 5 Jul 2002 15:20:48 -0000 1.5.2.1
@@ -519,7 +519,7 @@
context = this.getContext(contextName);
}
if (context == null) {
- throw new IllegalArgumentException("sunShine.getContextFragment: Context " + contextName + "not found.");
+ throw new IllegalArgumentException("sunShine.getContextFragment: Context '" + contextName + "' not found.");
}
DocumentFragment frag;
@@ -562,7 +562,7 @@
SessionContext context = this.getContext(contextName);
if (context == null) {
- throw new IllegalArgumentException("sunShine.streamContextFragment: Context " + contextName + "not found.");
+ throw new IllegalArgumentException("sunShine.streamContextFragment: Context '" + contextName + "' not found.");
}
streamed = context.streamXML(path, consumer, consumer);
@@ -609,7 +609,7 @@
// check context
if (context == null) {
- throw new IllegalArgumentException("sunShine.setContextFragment: Context " + contextName + "not found.");
+ throw new IllegalArgumentException("sunShine.setContextFragment: Context '" + contextName + "' not found.");
}
context.setXML(path, fragment);
@@ -655,7 +655,7 @@
// check context
if (context == null) {
- throw new IllegalArgumentException("sunShine.appendContextFragment: Context " + contextName + "not found.");
+ throw new IllegalArgumentException("sunShine.appendContextFragment: Context '" + contextName + "' not found.");
}
context.appendXML(path, fragment);
@@ -701,7 +701,7 @@
// check context
if (context == null) {
- throw new IllegalArgumentException("sunShine.mergeContextFragment: Context " + contextName + "not found.");
+ throw new IllegalArgumentException("sunShine.mergeContextFragment: Context '" + contextName + "' not found.");
}
Node contextNode = context.getSingleNode(path);
@@ -746,7 +746,7 @@
// check context
if (context == null) {
- throw new IllegalArgumentException("sunShine.removeContextFragment: Context " + contextName + "not found.");
+ throw new IllegalArgumentException("sunShine.removeContextFragment: Context '" + contextName + "' not found.");
}
context.removeXML(path);
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org