cmlenz      02/02/24 15:03:13

  Modified:    src/share/org/apache/slide/structure Tag: SLIDE_1_0
                        ObjectNotFoundException.java
  Log:
  Porting bugfixes/enhancements from the HEAD branch
  - Committed by juergen, 02/01/10 08:56:14
    "minor change, added an additional constructor"
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.2.2.1   +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.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- ObjectNotFoundException.java      26 Sep 2000 02:44:26 -0000      1.2
  +++ ObjectNotFoundException.java      24 Feb 2002 23:03:13 -0000      1.2.2.1
  @@ -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.2.2.1 2002/02/24 23:03:13 cmlenz Exp $
  + * $Revision: 1.2.2.1 $
  + * $Date: 2002/02/24 23:03:13 $
    *
    * ====================================================================
    *
    * 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.2.2.1 $
    */
   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]>

Reply via email to