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 the value part of an attribute is invalid.
24: * <p>
25: * Directory service providers may restrict the characteristics of the attribute
26: * value. If an attempt is made to set the attribute with an invalid attribute
27: * value the provider will throw an <code>InvalidAttributeValueException</code>.
28: * </p>
29: * <p>
30: * Examples include attempting to set a value on an attribute that doesn't take
31: * a value, attempting to set multiple values on an attribute that only takes a
32: * single value, attempting to clear a value on an attribute that must have a
33: * value, and so on.
34: * </p>
35: * <p>
36: * The serialization and synchronization specification for
37: * <code>NamingException</code> applies equally to this class.
38: * </p>
39: *
40: * @see NamingException
41: */
42: public class InvalidAttributeValueException extends NamingException {
43:
44: private static final long serialVersionUID = 0x7903d78afec63b03L;
45:
46: /**
47: * Default constructor.
48: * <p>
49: * All fields are initialized to null.
50: * </p>
51: */
52: public InvalidAttributeValueException() {
53: super ();
54: }
55:
56: /**
57: * Constructs an <code>InvalidAttributeValueException</code> instance
58: * using the supplied text of the message.
59: * <p>
60: * All fields are initialized to null.
61: * </p>
62: *
63: * @param s
64: * message about the problem
65: */
66: public InvalidAttributeValueException(String s) {
67: super(s);
68: }
69:
70: }
|