KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > naming > NameAlreadyBoundException


1 /*
2  * @(#)NameAlreadyBoundException.java 1.7 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.naming;
9
10 /**
11   * This exception is thrown by methods to indicate that
12   * a binding cannot be added because the name is already bound to
13   * another object.
14   * <p>
15   * Synchronization and serialization issues that apply to NamingException
16   * apply directly here.
17   *
18   * @author Rosanna Lee
19   * @author Scott Seligman
20   * @version 1.7 03/12/19
21   *
22   * @see Context#bind
23   * @see Context#rebind
24   * @see Context#createSubcontext
25   * @see javax.naming.directory.DirContext#bind
26   * @see javax.naming.directory.DirContext#rebind
27   * @see javax.naming.directory.DirContext#createSubcontext
28   * @since 1.3
29   */

30
31 public class NameAlreadyBoundException extends NamingException JavaDoc {
32     /**
33      * Constructs a new instance of NameAlreadyBoundException using the
34      * explanation supplied. All other fields default to null.
35      *
36      *
37      * @param explanation Possibly null additional detail about this exception.
38      * @see java.lang.Throwable#getMessage
39      */

40     public NameAlreadyBoundException(String JavaDoc explanation) {
41     super(explanation);
42     }
43
44     /**
45       * Constructs a new instance of NameAlreadyBoundException.
46       * All fields are set to null;
47       */

48     public NameAlreadyBoundException() {
49     super();
50     }
51
52     /**
53      * Use serialVersionUID from JNDI 1.1.1 for interoperability
54      */

55     private static final long serialVersionUID = -8491441000356780586L;
56 }
57
Popular Tags