01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package javax.naming.directory;
19:
20: import javax.naming.NamingException;
21:
22: /**
23: * Thrown when attempting to make a modification that contravenes the directory
24: * schema.
25: * <p>
26: *
27: * For example, this exception is thrown if an attempt is made to modify the set
28: * of attributes that is defined on an entry to a state that is invalid by the
29: * object attributes schema. Another example is if the naming schema is
30: * contravened by attempting to move the entry to a new part of the directory.
31: * <p>
32: *
33: * The directory service provider throws these exceptions.
34: * <p>
35: *
36: * The specification for serialization and thread-safety of
37: * <code>NamingException</code> applies equally to this class.
38: * <p>
39: */
40: public class SchemaViolationException extends NamingException {
41:
42: private static final long serialVersionUID = 0xd5c97d2fb107bec1L;
43:
44: /**
45: * This is the default constructor. All fields are initialized to null.
46: */
47: public SchemaViolationException() {
48: super ();
49: }
50:
51: /**
52: * Construct a <code>SchemaViolationException</code> with given message.
53: *
54: * @param s
55: * a message about exception detail
56: */
57: public SchemaViolationException(String s) {
58: super(s);
59: }
60:
61: }
|