KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)SchemaViolationException.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
9 package javax.naming.directory;
10
11 import javax.naming.NamingException JavaDoc;
12
13 /**
14   * This exception is thrown when a method
15   * in some ways violates the schema. An example of schema violation
16   * is modifying attributes of an object that violates the object's
17   * schema definition. Another example is renaming or moving an object
18   * to a part of the namespace that violates the namespace's
19   * schema definition.
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   *
28   * @see javax.naming.Context#bind
29   * @see DirContext#bind
30   * @see javax.naming.Context#rebind
31   * @see DirContext#rebind
32   * @see DirContext#createSubcontext
33   * @see javax.naming.Context#createSubcontext
34   * @see DirContext#modifyAttributes
35   * @since 1.3
36   */

37 public class SchemaViolationException extends NamingException JavaDoc {
38     /**
39      * Constructs a new instance of SchemaViolationException.
40      * All fields are set to null.
41      */

42     public SchemaViolationException() {
43     super();
44     }
45
46     /**
47      * Constructs a new instance of SchemaViolationException
48      * using the explanation supplied. All other fields are set to null.
49      * @param explanation Detail about this exception. Can be null.
50      * @see java.lang.Throwable#getMessage
51      */

52     public SchemaViolationException(String JavaDoc explanation) {
53     super(explanation);
54     }
55
56     /**
57      * Use serialVersionUID from JNDI 1.1.1 for interoperability
58      */

59     private static final long serialVersionUID = -3041762429525049663L;
60 }
61
Popular Tags