mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Ludovic Poitou
26.31.2010 64cff176f07ca7e3aa9a46553d2302cfcdb20281
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
 * CDDL HEADER START
 *
 * The contents of this file are subject to the terms of the
 * Common Development and Distribution License, Version 1.0 only
 * (the "License").  You may not use this file except in compliance
 * with the License.
 *
 * You can obtain a copy of the license at
 * trunk/opends/resource/legal-notices/OpenDS.LICENSE
 * or https://OpenDS.dev.java.net/OpenDS.LICENSE.
 * See the License for the specific language governing permissions
 * and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL HEADER in each
 * file and include the License file at
 * trunk/opends/resource/legal-notices/OpenDS.LICENSE.  If applicable,
 * add the following below this CDDL HEADER, with the fields enclosed
 * by brackets "[]" replaced with your own identifying information:
 *      Portions Copyright [yyyy] [name of copyright owner]
 *
 * CDDL HEADER END
 *
 *
 *      Copyright 2010 Sun Microsystems, Inc.
 */
 
package org.opends.sdk;
 
 
 
import org.opends.sdk.responses.Result;
 
 
 
/**
 * Thrown when the result code returned in a Result indicates that the update
 * Request failed because it would have left the Directory in an inconsistent
 * state. More specifically, this exception is used for the following error
 * result codes:
 * <ul>
 * <li>{@link ResultCode#ATTRIBUTE_OR_VALUE_EXISTS ATTRIBUTE_OR_VALUE_EXISTS} -
 * the Request failed because it would have resulted in a conflict with an
 * existing attribute or attribute value in the target entry.
 * <li>{@link ResultCode#CONSTRAINT_VIOLATION CONSTRAINT_VIOLATION} - the
 * Request failed because it would have violated some constraint defined in the
 * server.
 * <li>{@link ResultCode#ENTRY_ALREADY_EXISTS ENTRY_ALREADY_EXISTS} - the
 * Request failed because it would have resulted in an entry that conflicts with
 * an entry that already exists.
 * <li>{@link ResultCode#INVALID_ATTRIBUTE_SYNTAX INVALID_ATTRIBUTE_SYNTAX} -
 * the Request failed because it violated the syntax for a specified attribute.
 * <li>{@link ResultCode#INVALID_DN_SYNTAX INVALID_DN_SYNTAX} - the Request
 * failed because it would have resulted in an entry with an invalid or
 * malformed DN.
 * <li>{@link ResultCode#NAMING_VIOLATION NAMING_VIOLATION} - the Request failed
 * becauseit would have violated the server's naming configuration.
 * <li>{@link ResultCode#NOT_ALLOWED_ON_NONLEAF NOT_ALLOWED_ON_NONLEAF} - the
 * Request failed because it is not allowed for non-leaf entries.
 * <li>{@link ResultCode#NOT_ALLOWED_ON_RDN NOT_ALLOWED_ON_RDN} - the Request
 * failed because it is not allowed on an RDN attribute.
 * <li>{@link ResultCode#OBJECTCLASS_MODS_PROHIBITED
 * OBJECTCLASS_MODS_PROHIBITED} - the Request failed because it would have
 * modified the objectclasses associated with an entry in an illegal manner.
 * <li>{@link ResultCode#OBJECTCLASS_VIOLATION OBJECTCLASS_VIOLATION} - the
 * Request failed because it would have resulted in an entry that violated the
 * server schema.
 * <li>{@link ResultCode#UNDEFINED_ATTRIBUTE_TYPE UNDEFINED_ATTRIBUTE_TYPE} -
 * the Request failed because it referenced an attribute that is not defined in
 * the server schema.
 * </ul>
 */
@SuppressWarnings("serial")
public class ConstraintViolationException extends ErrorResultException
{
  ConstraintViolationException(final Result result)
  {
    super(result);
  }
}