juergen 02/01/10 08:56:14
Modified: src/share/org/apache/slide/structure
ObjectNotFoundException.java
Log:
minor change, added an additional constructor.
Revision Changes Path
1.3 +26 -16
jakarta-slide/src/share/org/apache/slide/structure/ObjectNotFoundException.java
Index: ObjectNotFoundException.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/share/org/apache/slide/structure/ObjectNotFoundException.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ObjectNotFoundException.java 26 Sep 2000 02:44:26 -0000 1.2
+++ ObjectNotFoundException.java 10 Jan 2002 16:56:14 -0000 1.3
@@ -1,13 +1,13 @@
/*
- * $Header:
/home/cvs/jakarta-slide/src/share/org/apache/slide/structure/ObjectNotFoundException.java,v
1.2 2000/09/26 02:44:26 remm Exp $
- * $Revision: 1.2 $
- * $Date: 2000/09/26 02:44:26 $
+ * $Header:
/home/cvs/jakarta-slide/src/share/org/apache/slide/structure/ObjectNotFoundException.java,v
1.3 2002/01/10 16:56:14 juergen Exp $
+ * $Revision: 1.3 $
+ * $Date: 2002/01/10 16:56:14 $
*
* ====================================================================
*
* The Apache Software License, Version 1.1
*
- * Copyright (c) 1999 The Apache Software Foundation. All rights
+ * Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -15,7 +15,7 @@
* are met:
*
* 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
+ * notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
@@ -23,15 +23,15 @@
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
+ * any, must include the following acknowlegement:
+ * "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
+ * from this software without prior written permission. For written
* permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache"
@@ -59,7 +59,7 @@
*
* [Additional notices, if required by prior licensing conditions]
*
- */
+ */
package org.apache.slide.structure;
@@ -68,9 +68,9 @@
/**
* Object not found.
- *
+ *
* @author <a href="mailto:[EMAIL PROTECTED]">Remy Maucherat</a>
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class ObjectNotFoundException extends StructureException {
@@ -80,13 +80,23 @@
/**
* Constructor.
- *
+ *
* @param objectUri Uri of the object
*/
public ObjectNotFoundException(Uri objectUri) {
- super(Messages.format(ObjectNotFoundException.class.getName(),
- objectUri.toString()));
- this.objectUri = objectUri.toString();
+ this(objectUri.toString());
+ }
+
+
+ /**
+ * Constructor.
+ *
+ * @param objectUri Uri of the object
+ */
+ public ObjectNotFoundException(String objectUri) {
+ super(Messages.format(ObjectNotFoundException.class.getName(),
+ objectUri));
+ this.objectUri = objectUri;
}
@@ -104,7 +114,7 @@
/**
* Object Uri accessor.
- *
+ *
* @return String object Uri
*/
public String getObjectUri() {
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>