KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)InvalidAttributeValueException.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 class is thrown when an attempt is
14   * made to add to an attribute a value that conflicts with the attribute's
15   * schema definition. This could happen, for example, if attempting
16   * to add an attribute with no value when the attribute is required
17   * to have at least one value, or if attempting to add more than
18   * one value to a single valued-attribute, or if attempting to
19   * add a value that conflicts with the syntax of the attribute.
20   * <p>
21   * Synchronization and serialization issues that apply to NamingException
22   * apply directly here.
23   *
24   * @author Rosanna Lee
25   * @author Scott Seligman
26   * @version 1.7 03/12/19
27   * @since 1.3
28   */

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

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

45     public InvalidAttributeValueException() {
46     super();
47     }
48
49     /**
50      * Use serialVersionUID from JNDI 1.1.1 for interoperability
51      */

52     private static final long serialVersionUID = 8720050295499275011L;
53 }
54
Popular Tags