KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > naming > directory > InvalidAttributesException


1 /*
2  * @(#)InvalidAttributesException.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.directory;
9
10 import javax.naming.NamingException JavaDoc;
11
12 /**
13   * This exception is thrown when an attempt is
14   * made to add or modify an attribute set that has been specified
15   * incompletely or incorrectly. This could happen, for example,
16   * when attempting to add or modify a binding, or to create a new
17   * subcontext without specifying all the mandatory attributes
18   * required for creation of the object. Another situation in
19   * which this exception is thrown is by specification of incompatible
20   * attributes within the same attribute set, or attributes in conflict
21   * with that specified by the object's schema.
22   * <p>
23   * Synchronization and serialization issues that apply to NamingException
24   * apply directly here.
25   *
26   * @author Rosanna Lee
27   * @author Scott Seligman
28   * @version 1.7 03/12/19
29   * @since 1.3
30   */

31
32 public class InvalidAttributesException extends NamingException JavaDoc {
33     /**
34      * Constructs a new instance of InvalidAttributesException using an
35      * explanation. All other fields are set to null.
36      * @param explanation Additional detail about this exception. Can be null.
37      * @see java.lang.Throwable#getMessage
38      */

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

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

54     private static final long serialVersionUID = 2607612850539889765L;
55 }
56
Popular Tags