cziegeler 2002/07/05 08:22:28
Modified: src/java/org/apache/cocoon/webapps/session/components
SessionManager.java
Log:
Better error messages
Revision Changes Path
1.5 +7 -7
xml-cocoon2/src/java/org/apache/cocoon/webapps/session/components/SessionManager.java
Index: SessionManager.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/webapps/session/components/SessionManager.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- SessionManager.java 13 Jun 2002 09:28:16 -0000 1.4
+++ SessionManager.java 5 Jul 2002 15:22:27 -0000 1.5
@@ -513,7 +513,7 @@
context = this.getContext(contextName);
}
if (context == null) {
- throw new IllegalArgumentException("SessionManager.getContextFragment:
Context " + contextName + "not found.");
+ throw new IllegalArgumentException("SessionManager.getContextFragment:
Context '" + contextName + "' not found.");
}
DocumentFragment frag;
@@ -556,7 +556,7 @@
SessionContext context = this.getContext(contextName);
if (context == null) {
- throw new
IllegalArgumentException("SessionManager.streamContextFragment: Context " +
contextName + "not found.");
+ throw new
IllegalArgumentException("SessionManager.streamContextFragment: Context '" +
contextName + "' not found.");
}
streamed = context.streamXML(path, consumer, consumer);
@@ -603,7 +603,7 @@
// check context
if (context == null) {
- throw new IllegalArgumentException("SessionManager.setContextFragment:
Context " + contextName + "not found.");
+ throw new IllegalArgumentException("SessionManager.setContextFragment:
Context '" + contextName + "' not found.");
}
context.setXML(path, fragment);
@@ -649,7 +649,7 @@
// check context
if (context == null) {
- throw new
IllegalArgumentException("SessionManager.appendContextFragment: Context " +
contextName + "not found.");
+ throw new
IllegalArgumentException("SessionManager.appendContextFragment: Context '" +
contextName + "' not found.");
}
context.appendXML(path, fragment);
@@ -695,7 +695,7 @@
// check context
if (context == null) {
- throw new
IllegalArgumentException("SessionManager.mergeContextFragment: Context " + contextName
+ "not found.");
+ throw new
IllegalArgumentException("SessionManager.mergeContextFragment: Context '" +
contextName + "' not found.");
}
Node contextNode = context.getSingleNode(path);
@@ -740,7 +740,7 @@
// check context
if (context == null) {
- throw new
IllegalArgumentException("SessionManager.removeContextFragment: Context " +
contextName + "not found.");
+ throw new
IllegalArgumentException("SessionManager.removeContextFragment: Context '" +
contextName + "' not found.");
}
context.removeXML(path);
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]